Changeset 36871 for trunk/Ohana/src/relastro/src/launch_region_hosts.c
- Timestamp:
- Jun 13, 2014, 2:35:55 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/launch_region_hosts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/launch_region_hosts.c
r36833 r36871 9 9 for (i = 0; i < regionHosts->Nhosts; i++) { 10 10 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.sync"); 11 truncate (syncfile, 0);11 if (truncate (syncfile, 0)) fprintf (stderr, "trouble clearing syncfile %s\n", syncfile); 12 12 free (syncfile); 13 13 14 14 char *fitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.fits"); 15 truncate (fitsfile, 0);15 if (truncate (fitsfile, 0)) fprintf (stderr, "trouble clearing fitsfile %s\n", fitsfile); 16 16 free (fitsfile); 17 17 18 18 char *imsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.sync"); 19 truncate (imsyncfile, 0);19 if (truncate (imsyncfile, 0)) fprintf (stderr, "trouble clearing imsyncfile %s\n", imsyncfile); 20 20 free (imsyncfile); 21 21 22 22 char *imfitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.fits"); 23 truncate (imfitsfile, 0);23 if (truncate (imfitsfile, 0)) fprintf (stderr, "trouble clearing imfitsfile %s\n", imfitsfile); 24 24 free (imfitsfile); 25 25 26 26 char *loopsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "loop.sync"); 27 truncate (loopsyncfile, 0);27 if (truncate (loopsyncfile, 0)) fprintf (stderr, "trouble clearing loopsyncfile %s\n", loopsyncfile); 28 28 free (loopsyncfile); 29 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
