Changeset 4762 for trunk/Ohana/src/opihi/pclient/job.c
- Timestamp:
- Aug 13, 2005, 10:30:13 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pclient/job.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pclient/job.c
r4691 r4762 8 8 if (argc < 2) { 9 9 fprintf (stderr, "USAGE: job (arg0) (arg1) ... (argN)\n"); 10 fprintf ( stdout, "STATUS %d\n", -2);10 fprintf (GetOutfile(), "STATUS %d\n", -2); 11 11 return (FALSE); 12 12 } … … 14 14 if (ChildStatus != PCLIENT_NONE) { 15 15 fprintf (stderr, "need to clear existing child\n"); 16 fprintf ( stdout, "STATUS %d\n", -3);16 fprintf (GetOutfile(), "STATUS %d\n", -3); 17 17 return (FALSE); 18 18 } … … 31 31 pid = fork (); 32 32 if (!pid) { /* must be child process */ 33 fprintf (stderr, "starting child process %s...\n", targv[0]);33 /* fprintf (stderr, "starting child process %s...\n", targv[0]); */ 34 34 35 35 /* close the other ends of the pipes */ … … 73 73 ChildPID = pid; 74 74 75 fprintf ( stdout, "STATUS %d\n", ChildPID);75 fprintf (GetOutfile(), "STATUS %d\n", ChildPID); 76 76 return (TRUE); 77 77 … … 85 85 if (child_stderr_fd[1] != 0) close (child_stderr_fd[1]); 86 86 87 fprintf ( stdout, "STATUS %d\n", -1);87 fprintf (GetOutfile(), "STATUS %d\n", -1); 88 88 return (FALSE); 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
