Changeset 17477 for trunk/Ohana/src/opihi/pcontrol/StartJob.c
- Timestamp:
- Apr 23, 2008, 3:38:50 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/StartJob.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/StartJob.c
r17476 r17477 72 72 /* check on result of pclient command */ 73 73 p = memstr (buffer[0].buffer, "STATUS", buffer[0].Nbuffer); 74 ASSERT (p != NULL, "missing STATUS in pclient message"); 74 if (p == NULL) { 75 // failed to get a valid response. kill the job and try again, 76 // or accept a running process without a PID? 77 if (VerboseMode()) gprint (GP_ERR, "failed to get a valid PID, trying to continue without\n"); 78 PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM); 79 PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM); 80 gettimeofday (&job[0].start, NULL); 81 return (TRUE); 82 } 75 83 76 84 sscanf (p, "%*s %d", &status);
Note:
See TracChangeset
for help on using the changeset viewer.
