- 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/cmd.data/uniq.c
r39297 r39419 56 56 int onePercent = ivec->Nelements / 100; 57 57 58 void *Signal = signal (SIGINT, handle_interrupt); 59 interrupt = FALSE; 58 struct sigaction *old_sigaction = SetInterrupt(); 60 59 for (i = 0; (i < ivec->Nelements) && !interrupt; Nnew++) { 61 60 vtgt[Nnew] = *vsrc; … … 72 71 } 73 72 } 74 signal (SIGINT, Signal);73 ClearInterrupt (old_sigaction); 75 74 if (VERBOSE) gprint (GP_ERR, "\n"); 76 75 free (indata); … … 90 89 int onePercent = ivec->Nelements / 100; 91 90 92 void *Signal = signal (SIGINT, handle_interrupt); 93 interrupt = FALSE; 91 struct sigaction *old_sigaction = SetInterrupt(); 94 92 for (i = 0; (i < ivec->Nelements) && !interrupt; Nnew++) { 95 93 vtgt[Nnew] = *vsrc; … … 106 104 } 107 105 } 108 signal (SIGINT, Signal);106 ClearInterrupt (old_sigaction); 109 107 if (VERBOSE) gprint (GP_ERR, "\n"); 110 108 free (indata);
Note:
See TracChangeset
for help on using the changeset viewer.
