Changeset 4450 for trunk/Ohana/src/opihi/pcontrol/CheckHost.c
- Timestamp:
- Jul 4, 2005, 5:35:47 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c
r3212 r4450 16 16 /* if host has a job, job is dead, push to Pending */ 17 17 if (host[0].stack == PCONTROL_HOST_BUSY) { 18 job = host[0].job; 19 N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY); 20 if (N < 0) { 21 fprintf (stderr, "error: job is not found in BUSY list\n"); 22 exit (2); 18 job = (Job *) host[0].job; 19 if (job != NULL) { 20 N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY); 21 if (N < 0) { 22 fprintf (stderr, "programming error: job is not found in BUSY list\n"); 23 exit (2); 24 } 25 job[0].host = NULL; /* unlink host & job */ 26 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM); 23 27 } 24 job[0].host = NULL; /* unlink host & job */25 job = GetJob (PCONTROL_JOB_BUSY, N);26 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);27 28 } 28 29 host[0].job = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
