Changeset 7917 for trunk/Ohana/src/opihi/pantasks/LocalJob.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/LocalJob.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/LocalJob.c
r6687 r7917 24 24 switch (Nread) { 25 25 case -2: /* error in read (programming error? system level error?) */ 26 fprintf (stderr, "serious IO error\n");26 gprint (GP_ERR, "serious IO error\n"); 27 27 exit (2); 28 28 case -1: /* no data in pipe */ … … 36 36 switch (Nread) { 37 37 case -2: /* error in read (programming error? system level error?) */ 38 fprintf (stderr, "serious IO error\n");38 gprint (GP_ERR, "serious IO error\n"); 39 39 exit (2); 40 40 case -1: /* no data in pipe */ … … 57 57 switch (errno) { 58 58 case ECHILD: 59 fprintf (stderr, "unknown PID, not a child proc\n");60 fprintf (stderr, "did process already exit? programming error?\n");59 gprint (GP_ERR, "unknown PID, not a child proc\n"); 60 gprint (GP_ERR, "did process already exit? programming error?\n"); 61 61 job[0].state = JOB_NONE; 62 62 job[0].exit_status = 0; 63 63 return (FALSE); 64 64 case EINVAL: 65 fprintf (stderr, "error EINVAL (waitpid): programming error\n");65 gprint (GP_ERR, "error EINVAL (waitpid): programming error\n"); 66 66 exit (1); 67 67 case EINTR: 68 fprintf (stderr, "error EINTR (waitpid): programming error\n");68 gprint (GP_ERR, "error EINTR (waitpid): programming error\n"); 69 69 exit (1); 70 70 default: 71 fprintf (stderr, "unknown error for waitpid (%d): programming error\n", errno);71 gprint (GP_ERR, "unknown error for waitpid (%d): programming error\n", errno); 72 72 exit (1); 73 73 } … … 81 81 default: 82 82 if (result != job[0].pid) { 83 fprintf (stderr, "waitpid error: mis-matched PID (%d vs %d). programming error\n", result, job[0].pid);83 gprint (GP_ERR, "waitpid error: mis-matched PID (%d vs %d). programming error\n", result, job[0].pid); 84 84 exit (1); 85 85 } … … 93 93 } 94 94 if (WIFSTOPPED(waitstatus)) { 95 fprintf (stderr, "waitpid returns 'stopped': programming error\n");95 gprint (GP_ERR, "waitpid returns 'stopped': programming error\n"); 96 96 exit (1); 97 97 } … … 114 114 pid = fork (); 115 115 if (!pid) { /* must be child process */ 116 if (VerboseMode()) fprintf (stderr, "starting local job\n");116 if (VerboseMode()) gprint (GP_ERR, "starting local job\n"); 117 117 118 118 /* close the other ends of the pipes */
Note:
See TracChangeset
for help on using the changeset viewer.
