Changeset 34088 for trunk/Ohana/src/opihi/pantasks
- Timestamp:
- Jun 26, 2012, 11:46:01 AM (14 years ago)
- Location:
- trunk/Ohana/src/opihi/pantasks
- Files:
-
- 3 edited
-
ControllerOps.c (modified) (6 diffs)
-
client_shell.c (modified) (2 diffs)
-
task.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/ControllerOps.c
r32632 r34088 63 63 int CheckControllerJob (Job *job) { 64 64 struct timeval start, stop; 65 float dtime;66 65 67 66 gettimeofday (&start, (void *) NULL); 68 67 CheckControllerJobStatus (job); 69 68 gettimeofday (&stop, (void *) NULL); 70 dtime = DTIME (stop, start);71 / * if (VerboseMode()) gprint (GP_ERR, "check job status %f\n", dtime); */69 // float dtime = DTIME (stop, start); 70 // if (VerboseMode()) gprint (GP_ERR, "check job status %f\n", dtime); 72 71 73 72 if ((job[0].state == JOB_EXIT) || (job[0].state == JOB_CRASH)) { … … 75 74 GetJobOutput ("stdout", job[0].pid, &job[0].stdout_buff, job[0].stdout_size); 76 75 gettimeofday (&stop, (void *) NULL); 77 dtime = DTIME (stop, start);76 // float dtime = DTIME (stop, start); 78 77 /* if (VerboseMode()) gprint (GP_ERR, "get stdout %f\n", dtime); */ 79 78 … … 81 80 GetJobOutput ("stderr", job[0].pid, &job[0].stderr_buff, job[0].stderr_size); 82 81 gettimeofday (&stop, (void *) NULL); 83 dtime = DTIME (stop, start);82 // float dtime = DTIME (stop, start); 84 83 /* if (VerboseMode()) gprint (GP_ERR, "get stderr %f\n", dtime); */ 85 84 … … 87 86 DeleteControllerJob (job); 88 87 gettimeofday (&stop, (void *) NULL); 89 dtime = DTIME (stop, start);88 // float dtime = DTIME (stop, start); 90 89 /* if (VerboseMode()) gprint (GP_ERR, "delete job %f\n", dtime); */ 91 90 } … … 578 577 int QuitController () { 579 578 580 int status;581 579 char cmd[128]; 582 580 IOBuffer buffer; … … 586 584 sprintf (cmd, "quit"); 587 585 InitIOBuffer (&buffer, 0x100); 588 status =ControllerCommand (cmd, NULL, &buffer);586 ControllerCommand (cmd, NULL, &buffer); 589 587 FreeIOBuffer (&buffer); 590 588 -
trunk/Ohana/src/opihi/pantasks/client_shell.c
r31666 r34088 4 4 int client_shell (int argc, char **argv) { 5 5 6 int Nbad , status;6 int Nbad; 7 7 char *line, *prompt, *history; 8 8 pid_t ppid; … … 41 41 42 42 if (*line) { 43 status = multicommand (line); 43 // status = multicommand (line); do something different if false? 44 multicommand (line); 44 45 add_history (line); 45 46 append_history (1, history); -
trunk/Ohana/src/opihi/pantasks/task.c
r32632 r34088 5 5 6 6 int hash; 7 int ThisList , status;7 int ThisList; 8 8 char *input, *outline; 9 9 Task *task; … … 82 82 case TASK_NPENDING: 83 83 case TASK_ACTIVE: 84 status = command (input, &outline, TRUE); 84 // status = command(); do something with this info? 85 command (input, &outline, TRUE); 85 86 if (outline != NULL) free (outline); 86 /* what to do if command is invalid?87 if (!status) return (FALSE); */88 87 break; 89 88
Note:
See TracChangeset
for help on using the changeset viewer.
