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/mmextract.c

    r38471 r39419  
    66  off_t i, j, k, m;
    77  int n, N, Npts, NPTS, last, next, state;
    8   int Nfields, Nreturn, Nreturn_base, Ncstack1, Ncstack2, Nstack1, Nstack2;
     8  int Nfields, Nreturn, Nreturn_base, Nstack1, Nstack2;
    99  int Nwhere, Iwhere, Nmatch, Imatch, NTABLE, Nt1, Nt2, n1, n2;
    1010  int Nsecfilt, VERBOSE, loadImages;
    1111  char **cstack1, **cstack2, name1[1024], name2[1024];
    1212  dbValue *values, **table1, **table2;
    13   void *Signal;
    1413
    1514  Catalog catalog;
     
    102101
    103102  // parse the 'where' and 'matched to' segments of the line as boolean math expressions
     103  unsigned int Ncstack1, Ncstack2;
    104104  cstack1 = isolate_elements (Nwhere, &argv[Iwhere], &Ncstack1);
    105105  cstack2 = isolate_elements (Nmatch, &argv[Imatch], &Ncstack2);
     
    178178
    179179  // grab data from all selected sky regions
    180   Signal = signal (SIGINT, handle_interrupt);
    181   interrupt = FALSE;
     180  struct sigaction *old_sigaction = SetInterrupt();
     181
    182182  for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) {
    183183    /* lock, load, unlock catalog */
     
    286286    // dbStackFreeReset ();
    287287  }
    288   signal (SIGINT, Signal);
    289   interrupt = FALSE;
     288  ClearInterrupt (old_sigaction);
    290289
    291290  // free excess memory
Note: See TracChangeset for help on using the changeset viewer.