Changeset 7917 for trunk/Ohana/src/opihi/pclient/reset.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pclient/reset.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pclient/reset.c
r4762 r7917 7 7 8 8 if (argc != 1) { 9 fprintf (stderr, "USAGE: reset\n");10 fprintf (GetOutfile(), "STATUS -1\n");9 gprint (GP_ERR, "USAGE: reset\n"); 10 gprint (GP_LOG, "STATUS -1\n"); 11 11 return (FALSE); 12 12 } 13 13 14 14 if (ChildStatus == PCLIENT_NONE) { 15 fprintf (stderr, "no child process, cannot reset\n");16 fprintf (GetOutfile(), "STATUS 2\n");15 gprint (GP_ERR, "no child process, cannot reset\n"); 16 gprint (GP_LOG, "STATUS 2\n"); 17 17 return (TRUE); 18 18 } … … 42 42 43 43 /* total failure, don't reset */ 44 fprintf (stderr, "child process %d is hung, cannot reset\n", ChildPID);45 fprintf (GetOutfile(), "STATUS 0\n");44 gprint (GP_ERR, "child process %d is hung, cannot reset\n", ChildPID); 45 gprint (GP_LOG, "STATUS 0\n"); 46 46 return (FALSE); 47 47 } … … 62 62 ChildExitStatus = 0; 63 63 64 fprintf (GetOutfile(), "STATUS 1\n");64 gprint (GP_LOG, "STATUS 1\n"); 65 65 return (TRUE); 66 66 }
Note:
See TracChangeset
for help on using the changeset viewer.
