- use EXIT_{SUCCESS,FAILURE}. No object-code changes
This commit is contained in:
@@ -640,7 +640,7 @@ int runsv_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
||||
|
||||
if (svd[0].want == W_EXIT && svd[0].state == S_DOWN) {
|
||||
if (svd[1].pid == 0)
|
||||
_exit(0);
|
||||
_exit(EXIT_SUCCESS);
|
||||
if (svd[1].want != W_EXIT) {
|
||||
svd[1].want = W_EXIT;
|
||||
/* stopservice(&svd[1]); */
|
||||
|
||||
@@ -343,7 +343,7 @@ int runsvdir_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
||||
|
||||
switch (exitsoon) {
|
||||
case 1:
|
||||
_exit(0);
|
||||
_exit(EXIT_SUCCESS);
|
||||
case 2:
|
||||
for (i = 0; i < svnum; i++)
|
||||
if (sv[i].pid)
|
||||
|
||||
Reference in New Issue
Block a user