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

    r38471 r39419  
    2727  int N, done, Nfit;
    2828  int status;
    29   void *oldsignal;
    3029  char name[64], line[1024], key[20];
    3130  float *fitmags, *fiterrs, *wavecode, *vegaToAB;
     
    4847  SEDtableRow sourceValue, sourceError;
    4948  SEDfit minFit, testFit;
     49  struct sigaction *old_sigaction = NULL;
    5050
    5151  /* defaults */
     
    7474  fiterrs = NULL;
    7575  fitmags = NULL;
    76 
    77   oldsignal = signal (SIGINT, handle_interrupt);
    78   interrupt = FALSE;
    7976
    8077  /* load photcode information */
     
    184181  /* loop over regions, extract data for each region */
    185182  // XXX add interrupt checks
     183  old_sigaction = SetInterrupt();
    186184  gprint (GP_ERR, "using "OFF_T_FMT" possible regions\n",  skylist[0].Nregions);
    187   for (k = 0; k < skylist[0].Nregions; k++) {
     185  for (k = 0; (k < skylist[0].Nregions) && !interrupt; k++) {
    188186    /* lock, load, unlock catalog */
    189187    dvo_catalog_init (&catalog, TRUE);
     
    377375  if (sourceError.mags != NULL) free (sourceError.mags);
    378376
    379   signal (SIGINT, oldsignal);
     377  ClearInterrupt (old_sigaction);
    380378  return (status);
    381379}
Note: See TracChangeset for help on using the changeset viewer.