]> mj.ucw.cz Git - libucw.git/commitdiff
Replaced the long-lived "close(0) if logging to file" hack by closing
authorMartin Mares <mj@ucw.cz>
Sat, 28 Jan 2006 21:08:13 +0000 (21:08 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 28 Jan 2006 21:08:13 +0000 (21:08 +0000)
stdin in the daemon-helper.

lib/log-file.c

index e1ac0209fb20566b11ce98e2dbe4a17a31a826e9..c6575cc42f726d3f4b1870315aea423fa8e74acc 100644 (file)
@@ -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);
     }
 }