- Timestamp:
- Mar 1, 2016, 11:34:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20160226/src/opihi/lib.shell/exec_loop.c
r12332 r39419 3 3 int exec_loop (Macro *loop) { 4 4 5 void *Signal;6 5 int j, status, ThisList; 7 6 char *line; … … 17 16 18 17 /* set up interrupts */ 19 Signal = signal (SIGINT, handle_interrupt); 20 interrupt = FALSE; 18 struct sigaction *old_sigaction = SetInterrupt(); 21 19 22 20 /* process the list */ … … 32 30 if (loop_break || loop_last || loop_next) break; 33 31 } 34 signal (SIGINT, Signal);32 ClearInterrupt (old_sigaction); 35 33 36 34 /* free remaining lines on the list, free the list, decrement the shell level */
Note:
See TracChangeset
for help on using the changeset viewer.
