IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2015, 6:15:27 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/markrock/src/markrock.c

    r38471 r38626  
    6060
    6161  /* rocks2 = find_slow_rocks (&catalog, &catstats, &Nrocks2);  */
    62   dvo_catalog_save (&catalog, VERBOSE);
    63   dvo_catalog_unlock (&catalog);
     62  SetProtect (TRUE);
     63  if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); }
     64  if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); }
     65  SetProtect (FALSE);
     66   
    6467  dvo_catalog_free (&catalog);
    6568
Note: See TracChangeset for help on using the changeset viewer.