diff options
Diffstat (limited to 'networking/inetd.c')
-rw-r--r-- | networking/inetd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 3be9dcb7f..08c09953b 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1124,7 +1124,7 @@ static void clean_up_and_exit(int sig ATTRIBUTE_UNUSED) | |||
1124 | close(sep->se_fd); | 1124 | close(sep->se_fd); |
1125 | } | 1125 | } |
1126 | remove_pidfile(_PATH_INETDPID); | 1126 | remove_pidfile(_PATH_INETDPID); |
1127 | exit(0); | 1127 | exit(EXIT_SUCCESS); |
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | int inetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1130 | int inetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -1344,7 +1344,7 @@ int inetd_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
1344 | else | 1344 | else |
1345 | sep->se_builtin->bi_dgram_fn(ctrl, sep); | 1345 | sep->se_builtin->bi_dgram_fn(ctrl, sep); |
1346 | if (pid) /* we did vfork */ | 1346 | if (pid) /* we did vfork */ |
1347 | _exit(1); | 1347 | _exit(EXIT_FAILURE); |
1348 | maybe_close(accepted_fd); | 1348 | maybe_close(accepted_fd); |
1349 | continue; /* -> check next fd in fd set */ | 1349 | continue; /* -> check next fd in fd set */ |
1350 | } | 1350 | } |
@@ -1408,7 +1408,7 @@ int inetd_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
1408 | /* eat packet in udp case */ | 1408 | /* eat packet in udp case */ |
1409 | if (sep->se_socktype != SOCK_STREAM) | 1409 | if (sep->se_socktype != SOCK_STREAM) |
1410 | recv(0, line, LINE_SIZE, MSG_DONTWAIT); | 1410 | recv(0, line, LINE_SIZE, MSG_DONTWAIT); |
1411 | _exit(1); | 1411 | _exit(EXIT_FAILURE); |
1412 | } /* for (sep = servtab...) */ | 1412 | } /* for (sep = servtab...) */ |
1413 | } /* for (;;) */ | 1413 | } /* for (;;) */ |
1414 | } | 1414 | } |
@@ -1441,7 +1441,7 @@ static void echo_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | |||
1441 | close(STDERR_FILENO); | 1441 | close(STDERR_FILENO); |
1442 | xopen("/dev/null", O_WRONLY); | 1442 | xopen("/dev/null", O_WRONLY); |
1443 | BB_EXECVP("cat", (char**)cat_args); | 1443 | BB_EXECVP("cat", (char**)cat_args); |
1444 | /* on failure we return to main, which does exit(1) */ | 1444 | /* on failure we return to main, which does exit(EXIT_FAILURE) */ |
1445 | #endif | 1445 | #endif |
1446 | } | 1446 | } |
1447 | static void echo_dg(int s, servtab_t *sep) | 1447 | static void echo_dg(int s, servtab_t *sep) |
@@ -1479,7 +1479,7 @@ static void discard_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | |||
1479 | /* no error messages please... */ | 1479 | /* no error messages please... */ |
1480 | xdup2(STDOUT_FILENO, STDERR_FILENO); | 1480 | xdup2(STDOUT_FILENO, STDERR_FILENO); |
1481 | BB_EXECVP("cat", (char**)cat_args); | 1481 | BB_EXECVP("cat", (char**)cat_args); |
1482 | /* on failure we return to main, which does exit(1) */ | 1482 | /* on failure we return to main, which does exit(EXIT_FAILURE) */ |
1483 | #endif | 1483 | #endif |
1484 | } | 1484 | } |
1485 | /* ARGSUSED */ | 1485 | /* ARGSUSED */ |