Changeset 17744 for trunk/ippTools/src/pzgetimfiles.c
- Timestamp:
- May 19, 2008, 1:19:32 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetimfiles.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetimfiles.c
r17741 r17744 97 97 98 98 psString cmdOutput = psSlurpFile(output); 99 int exitStatus = pclose(output);100 101 if ( exitStatus != 0) {99 int status = pclose(output); 100 101 if (status != 0) { 102 102 // mark the summitExp row as faulted 103 if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", exitStatus, filesetid, camera, telescope)) {103 if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) { 104 104 psError(PS_ERR_UNKNOWN, false, "database error"); 105 105 } 106 106 107 107 psError(PS_ERR_UNKNOWN, true, "%s failed with exit status %d", 108 FILESET_LS_CMD, exitStatus);108 FILESET_LS_CMD, WEXITSTATUS(status)); 109 109 psFree(cmdOutput); 110 110 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
