diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-10-03 20:38:06 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-10-03 20:38:06 +0000 |
commit | 2b44dbd7e4dd873417e6b525d64b83615589fe41 (patch) | |
tree | bab28e4c6e0b4699e1f11f143603b0d0f04b412b /src | |
parent | ac881909bfff6c86bf758ba66ad10af4cc291a40 (diff) |
#(makedaemon): Commented out the closing of the standard file
descriptors since we need them to display error messages.
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon.c b/src/daemon.c index ec553da..10bda1d 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -1,4 +1,4 @@ -/* $Id: daemon.c,v 1.1 2002-05-23 04:39:32 rjkaes Exp $ +/* $Id: daemon.c,v 1.2 2002-10-03 20:38:06 rjkaes Exp $ * * This file contains functions which are useful when writing a * daemon process. The functions include a "makedaemon" function and @@ -40,9 +40,11 @@ makedaemon(void) chdir("/"); umask(077); +#if 0 close(0); close(1); close(2); +#endif } /* |