From: Martin Mares Date: Sat, 28 Jan 2006 21:08:13 +0000 (+0000) Subject: Replaced the long-lived "close(0) if logging to file" hack by closing X-Git-Tag: holmes-import~685 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f14ddc51661615c9f9daa70f1ef8f3abe0e2be37;p=libucw.git Replaced the long-lived "close(0) if logging to file" hack by closing stdin in the daemon-helper. --- diff --git a/lib/log-file.c b/lib/log-file.c index e1ac0209..c6575cc4 100644 --- a/lib/log-file.c +++ b/lib/log-file.c @@ -84,8 +84,6 @@ log_file(byte *name) log_filename[0] = 0; log_switch(); log_switch_hook = internal_log_switch; - close(0); - open("/dev/null", O_RDWR, 0); } }