IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2016, 11:34:48 AM (10 years ago)
Author:
eugene
Message:

list unused parameters; replace old signal code with SetInterrupt, ClearInterrupt; fix unsigned / signed int inconsistencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/opihi/dvo/mextract.c

    r39360 r39419  
    2525 
    2626  off_t i, j, k, m; // used for counter averages and measures
    27   int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
     27  int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Nstack;
    2828  int Nsecfilt, VERBOSE, loadImages;
    2929  char **cstack, name[1024];
    3030  dbValue *values;
    31   void *Signal;
    3231
    3332  Catalog catalog;
     
    115114
    116115  // parse the remainder of the line as a boolean math expression
     116  unsigned int Ncstack;
    117117  cstack = isolate_elements (argc-next, &argv[next], &Ncstack);
    118118 
     
    217217
    218218  // grab data from all selected sky regions
    219   Signal = signal (SIGINT, handle_interrupt);
    220   interrupt = FALSE;
    221 
    222   // fprintf (stderr, "done setup...");
     219  struct sigaction *old_sigaction = SetInterrupt();
    223220
    224221  for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) {
     
    310307    // dbStackFreeReset ();
    311308  }
    312   signal (SIGINT, Signal);
     309  ClearInterrupt (old_sigaction);
    313310  interrupt = FALSE;
    314311
Note: See TracChangeset for help on using the changeset viewer.