From a19e64933c600b7f05232ad80bb5db85c115e42d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 11 Mar 2009 14:40:00 +0000 Subject: docs/logging_and_backgrounding.txt: new mini-doc dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog function old new delta udhcp_read_interface 308 306 -2 ttl 4 - -4 fileconf 4 - -4 dnsentry 4 - -4 interrupt 19 - -19 dnsd_main 1463 1394 -69 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 808161 476 7864 816501 c7575 busybox_old 807994 468 7856 816318 c74be busybox_unstripped --- networking/nameif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'networking/nameif.c') diff --git a/networking/nameif.c b/networking/nameif.c index 4d68c8d63..fb31fbfff 100644 --- a/networking/nameif.c +++ b/networking/nameif.c @@ -144,7 +144,9 @@ int nameif_main(int argc, char **argv) if (1 & getopt32(argv, "sc:", &fname)) { openlog(applet_name, 0, LOG_LOCAL0); - logmode = LOGMODE_SYSLOG; + /* Why not just "="? I assume logging to stderr + * can't hurt. 2>/dev/null if you don't like it: */ + logmode |= LOGMODE_SYSLOG; } argc -= optind; argv += optind; -- cgit v1.2.3