Changeset 4689 for trunk/Ohana/src/opihi/pantasks/ControllerOps.c
- Timestamp:
- Jul 31, 2005, 1:04:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/ControllerOps.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/ControllerOps.c
r4684 r4689 20 20 GetJobOutput ("stderr", job[0].pid, &job[0].stderr, job[0].stderr_size); 21 21 } 22 return (TRUE); 22 23 } 23 24 … … 157 158 /* construct the controller command portion */ 158 159 if (!strcmp (job[0].task[0].host, "NONE")) { 159 sprintf (cmd, "job" , cmd);160 sprintf (cmd, "job"); 160 161 } else { 161 162 if (job[0].task[0].host_required) { … … 391 392 IOBuffer buffer; 392 393 394 if (!CheckControllerStatus()) return (TRUE); 395 393 396 sprintf (cmd, "kill %d", job[0].pid); 394 397 InitIOBuffer (&buffer, 0x100); … … 400 403 } 401 404 405 int QuitController () { 406 407 int status; 408 char cmd[128]; 409 IOBuffer buffer; 410 411 if (!CheckControllerStatus()) return (TRUE); 412 413 sprintf (cmd, "quit"); 414 InitIOBuffer (&buffer, 0x100); 415 status = ControllerCommand (cmd, CONTROLLER_PROMPT, &buffer); 416 return (TRUE); 417 } 418 402 419 /* memstr returns a view, not an allocated string : don't free */
Note:
See TracChangeset
for help on using the changeset viewer.
