Changeset 11388
- Timestamp:
- Jan 29, 2007, 12:43:13 PM (19 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 7 edited
-
include/pantasks.h (modified) (1 diff)
-
include/pcontrol.h (modified) (1 diff)
-
pantasks/JobOps.c (modified) (1 diff)
-
pcontrol/CheckBusyJob.c (modified) (1 diff)
-
pcontrol/JobOps.c (modified) (1 diff)
-
pcontrol/StartJob.c (modified) (2 diffs)
-
pcontrol/check.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/pantasks.h
r11084 r11388 144 144 char *stdout_dump; 145 145 char *stderr_dump; 146 char *realhost; 146 147 147 148 int stdout_size; /* size of pending stdout buffer (controller) */ -
trunk/Ohana/src/opihi/include/pcontrol.h
r11052 r11388 67 67 char **argv; 68 68 char *hostname; 69 char *realhost; 69 70 int exit_status; 70 71 int Reset; -
trunk/Ohana/src/opihi/pantasks/JobOps.c
r9037 r11388 114 114 115 115 job[0].task = task; 116 job[0].realhost = NULL; 116 117 117 118 /* if we decide we need to be able to dynamically set task qualities (like host, timeouts, etc), the we will -
trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c
r11052 r11388 31 31 job[0].host = NULL; 32 32 host[0].job = NULL; 33 if (job[0].realhost) free (job[0].realhost); 34 job[0].realhost = NULL; 33 35 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); 34 36 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM); -
trunk/Ohana/src/opihi/pcontrol/JobOps.c
r10652 r11388 145 145 job[0].JobID = NextJobID(); 146 146 job[0].Reset = FALSE; 147 job[0].realhost = NULL; 147 148 148 149 /* do this step on start? */ -
trunk/Ohana/src/opihi/pcontrol/StartJob.c
r11052 r11388 48 48 job[0].host = NULL; 49 49 host[0].job = NULL; 50 if (job[0].realhost) free (job[0].realhost); 51 job[0].realhost = NULL; 50 52 PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM); 51 53 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM); … … 78 80 79 81 default: 82 job[0].realhost = strcreate (host[0].hostname); 80 83 job[0].pid = status; 81 84 PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM); -
trunk/Ohana/src/opihi/pcontrol/check.c
r11052 r11388 28 28 gprint (GP_LOG, "STDERR %d\n", job[0].stderr_size); 29 29 gprint (GP_LOG, "DTIME %lf\n", job[0].dtime); 30 if (job[0].realhost) { 31 gprint (GP_LOG, "HOSTNAME %s\n", job[0].realhost); 32 } else { 33 gprint (GP_LOG, "HOSTNAME NONE\n"); 34 } 30 35 PutJob (job, StackID, STACK_BOTTOM); 31 36 ClearCheckPoint ();
Note:
See TracChangeset
for help on using the changeset viewer.
