Changeset 38621
- Timestamp:
- Jul 22, 2015, 6:04:34 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src/relphot/src
- Files:
-
- 6 edited
-
Shutdown.c (modified) (1 diff)
-
reload_catalogs.c (modified) (1 diff)
-
relphot.c (modified) (1 diff)
-
relphot_client.c (modified) (1 diff)
-
relphot_objects.c (modified) (1 diff)
-
relphot_synthphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/Shutdown.c
r37037 r38621 21 21 va_end (argp); 22 22 23 SetProtect (TRUE);24 if (db) gfits_db_close (db);25 23 fprintf (stderr, "ERROR: relphot halted\n"); 26 24 exit (1); -
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/reload_catalogs.c
r38471 r38621 105 105 free (moddate); 106 106 107 dvo_catalog_save (&catalog, VERBOSE); 108 dvo_catalog_unlock (&catalog); 107 SetProtect (TRUE); 108 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 109 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 110 SetProtect (FALSE); 109 111 110 112 free_tiny_values(&catalog); -
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/relphot.c
r38062 r38621 4 4 5 5 // get configuration info, args 6 SetSignals (); 6 7 RelphotMode mode = initialize (argc, argv); 7 8 if (!mode) exit (2); -
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/relphot_client.c
r38062 r38621 18 18 19 19 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, etc) 20 SetSignals (); 20 21 initialize_client (argc, argv); 21 22 client_logger_init (HOSTDIR); -
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/relphot_objects.c
r38471 r38621 101 101 // but it would be better to define a dvo crawler program to do this 102 102 // catalog.catformat = DVO_FORMAT_PS1_V1; 103 dvo_catalog_save (&catalog, VERBOSE); 104 dvo_catalog_unlock (&catalog); 103 SetProtect (TRUE); 104 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 105 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 106 SetProtect (FALSE); 105 107 free_tiny_values(&catalog); 106 108 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20150625/Ohana/src/relphot/src/relphot_synthphot.c
r38471 r38621 71 71 // but it would be better to define a dvo crawler program to do this 72 72 // catalog.catformat = DVO_FORMAT_PS1_V1; 73 dvo_catalog_save (&catalog, VERBOSE); 74 dvo_catalog_unlock (&catalog); 73 SetProtect (TRUE); 74 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 75 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 76 SetProtect (FALSE); 75 77 dvo_catalog_free (&catalog); 76 78 }
Note:
See TracChangeset
for help on using the changeset viewer.
