Changeset 13720
- Timestamp:
- Jun 8, 2007, 11:41:36 AM (19 years ago)
- Location:
- trunk/Ohana/src/opihi/pcontrol
- Files:
-
- 7 edited
-
GetJobOutput.c (modified) (1 diff)
-
HostOps.c (modified) (2 diffs)
-
JobOps.c (modified) (2 diffs)
-
ResetJob.c (modified) (1 diff)
-
StopHosts.c (modified) (3 diffs)
-
pcontrol.c.in (modified) (1 diff)
-
rconnect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/GetJobOutput.c
r12840 r13720 62 62 63 63 gprint (GP_ERR, "programming error: should not reach here (GetJobOutput)\n"); 64 exit (1);64 pcontrol_exit (1); 65 65 } -
trunk/Ohana/src/opihi/pcontrol/HostOps.c
r12840 r13720 24 24 } 25 25 gprint (GP_ERR, "error: unknown host stack : programming error\n"); 26 exit (1);26 pcontrol_exit (1); 27 27 } 28 28 … … 36 36 } 37 37 gprint (GP_ERR, "error: unknown host stack : programming error\n"); 38 exit (1);38 pcontrol_exit (1); 39 39 } 40 40 -
trunk/Ohana/src/opihi/pcontrol/JobOps.c
r12840 r13720 27 27 } 28 28 gprint (GP_ERR, "error: unknown host stack : programming error\n"); 29 exit (1);29 pcontrol_exit (1); 30 30 } 31 31 … … 40 40 } 41 41 gprint (GP_ERR, "error: unknown job stack : programming error\n"); 42 exit (1);42 pcontrol_exit (1); 43 43 } 44 44 -
trunk/Ohana/src/opihi/pcontrol/ResetJob.c
r10659 r13720 43 43 default: 44 44 gprint (GP_ERR, "unknown status for pclient command: programming error\n"); 45 exit (1);45 pcontrol_exit (1); 46 46 } 47 47 48 48 gprint (GP_ERR, "programming error in GetJobOutput (should not reach here)\n"); 49 exit (1);49 pcontrol_exit (1); 50 50 } 51 51 -
trunk/Ohana/src/opihi/pcontrol/StopHosts.c
r12840 r13720 91 91 default: 92 92 gprint (GP_ERR, "unknown status for pclient command: programming error\n"); 93 exit (1);93 pcontrol_exit (1); 94 94 } 95 95 HarvestHost (host[0].pid); … … 139 139 if (result != pid) { 140 140 gprint (GP_ERR, "waitpid error: mis-matched PID (%d vs %d). programming error\n", result, pid); 141 exit (1);141 pcontrol_exit (1); 142 142 } 143 143 … … 149 149 } 150 150 if (WIFSTOPPED(waitstatus)) { 151 if (VerboseMode())gprint (GP_ERR, "waitpid returns 'stopped': programming error\n");152 exit (1);151 gprint (GP_ERR, "waitpid returns 'stopped': programming error\n"); 152 pcontrol_exit (1); 153 153 } 154 154 } -
trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
r12280 r13720 85 85 int status; 86 86 status = opihi (argc, argv); 87 abort (); 87 88 exit (status); 88 89 } 90 91 void pcontrol_exit (int n) { 92 abort (); 93 exit (n); 94 } -
trunk/Ohana/src/opihi/pcontrol/rconnect.c
r13545 r13720 58 58 status = execvp (argv[0], argv); 59 59 gprint (GP_ERR, "error starting remote shell process\n"); 60 exit (1);60 pcontrol_exit (1); 61 61 } 62 62 free (argv); … … 122 122 if ((result == -1) && (errno != ECHILD)) { 123 123 gprint (GP_ERR, "unexpected error from waitpid (%d): programming error\n", errno); 124 exit (1);124 pcontrol_exit (1); 125 125 } 126 126 if (result == 0) { … … 130 130 if (result != pid) { 131 131 gprint (GP_ERR, "waitpid error: mis-matched PID (%d vs %d). programming error\n", result, pid); 132 exit (1);132 pcontrol_exit (1); 133 133 } 134 134 if (WIFSTOPPED(waitstatus)) { 135 135 gprint (GP_ERR, "waitpid returns 'stopped': programming error\n"); 136 exit (1);136 pcontrol_exit (1); 137 137 } 138 138 }
Note:
See TracChangeset
for help on using the changeset viewer.
