projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a431b3
)
inetd: open log after daemonization
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 14 Jan 2007 02:03:28 +0000
(
02:03
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 14 Jan 2007 02:03:28 +0000
(
02:03
-0000)
networking/inetd.c
patch
|
blob
|
history
diff --git
a/networking/inetd.c
b/networking/inetd.c
index f9f3b51b633502863560cd3626402067012f75d2..fd2c88a6b026b7b5a9554cec7a2b98dfb333cb22 100644
(file)
--- a/
networking/inetd.c
+++ b/
networking/inetd.c
@@
-1272,8
+1272,6
@@
inetd_main(int argc, char *argv[])
LastArg = envp[-1] + strlen(envp[-1]);
#endif
- openlog(applet_name, LOG_PID | LOG_NOWAIT, LOG_DAEMON);
-
opt = getopt32(argc, argv, "R:f", &stoomany);
if(opt & 1) {
toomany = xatoi_u(stoomany);
@@
-1298,6
+1296,7
@@
inetd_main(int argc, char *argv[])
#else
bb_sanitize_stdio(!(opt & 2));
#endif
+ openlog(applet_name, LOG_PID | LOG_NOWAIT, LOG_DAEMON);
logmode = LOGMODE_SYSLOG;
if (uid == 0) {