IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2008, 4:29:47 PM (18 years ago)
Author:
eugene
Message:

add interrupts to (potentially) long loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/imdata.c

    r14590 r20535  
    1515  Vector *vec;
    1616  SkyRegionSelection *selection;
     17  void *Signal;
    1718
    1819  // parse skyregion options
     
    127128  vec[0].Nelements = N = 0;
    128129
     130  // prepare to handle interrupt signals
     131  Signal = signal (SIGINT, handle_interrupt);
     132  interrupt = FALSE;
     133
    129134  /* for each region file, extract the data of interest in the right time range */
    130   for (j = 0; j < skylist[0].Nregions; j++) {
     135  for (j = 0; (j < skylist[0].Nregions) && !interrupt; j++) {
    131136
    132137    /* get file name and open */
Note: See TracChangeset for help on using the changeset viewer.