IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2016, 10:23:42 PM (10 years ago)
Author:
eugene
Message:

modify to pass with extremely pedantic build; force consistency for signed vs unsigned and int sizes; various relastro updates

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/opihi/dvo/fitsed.c

    r38471 r39457  
    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.