- 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/dvo/imextract.c
r37807 r39419 4 4 5 5 off_t i, j, Nimage; 6 int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, N cstack, Nstack;6 int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Nstack; 7 7 char **cstack, name[1024]; 8 void *Signal;9 8 10 9 Vector **vec; … … 57 56 58 57 // parse the remainder of the line as a boolean math expression 58 unsigned int Ncstack; 59 59 cstack = isolate_elements (argc-next, &argv[next], &Ncstack); 60 60 … … 97 97 98 98 // grab data from all selected sky regions 99 Signal = signal (SIGINT, handle_interrupt); 100 interrupt = FALSE; 99 struct sigaction *old_sigaction = SetInterrupt(); 101 100 for (j = 0; (j < Nimage) && !interrupt; j++) { 102 101 … … 128 127 } 129 128 } 130 signal (SIGINT, Signal);131 interrupt = FALSE; 129 ClearInterrupt (old_sigaction); 130 132 131 for (n = 0; n < Nreturn; n++) { 133 132 vec[n][0].Nelements = Npts;
Note:
See TracChangeset
for help on using the changeset viewer.
