IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2015, 5:57:47 PM (11 years ago)
Author:
eugene
Message:

protect the catalog I/O layer from signals which can be blocked (ie, allow kill to kill gracefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/addstar/src/loadtycho_rawdata.c

    r38594 r38618  
    159159      find_matches_closest_refstars(region, newcat, &catalog, options);
    160160
    161       dvo_catalog_save (&catalog, verbose);
    162       dvo_catalog_unlock (&catalog);
     161      SetProtect (TRUE);
     162      if (!dvo_catalog_save (&catalog, verbose)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); }
     163      if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); }
     164      SetProtect (FALSE);
     165
    163166      dvo_catalog_free (&catalog);
    164167
Note: See TracChangeset for help on using the changeset viewer.