diff options
-rw-r--r-- | networking/inetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 4b9d01294..391bb9ba6 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1361,9 +1361,9 @@ int inetd_main(int argc UNUSED_PARAM, char **argv) | |||
1361 | if (setrlimit(RLIMIT_NOFILE, &rlim_ofile) < 0) | 1361 | if (setrlimit(RLIMIT_NOFILE, &rlim_ofile) < 0) |
1362 | bb_perror_msg("setrlimit"); | 1362 | bb_perror_msg("setrlimit"); |
1363 | 1363 | ||
1364 | /*closelog(); - BAD, we are after vfork, | 1364 | /* closelog(); - WRONG. we are after vfork, |
1365 | * this may confuse syslog() state. | 1365 | * this may confuse syslog() internal state. |
1366 | * Let's hope libc set syslog fd to CLOEXEC... | 1366 | * Let's hope libc sets syslog fd to CLOEXEC... |
1367 | */ | 1367 | */ |
1368 | xmove_fd(ctrl, STDIN_FILENO); | 1368 | xmove_fd(ctrl, STDIN_FILENO); |
1369 | xdup2(STDIN_FILENO, STDOUT_FILENO); | 1369 | xdup2(STDIN_FILENO, STDOUT_FILENO); |