diff options
author | deva <deva> | 2005-06-14 12:29:40 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-14 12:29:40 +0000 |
commit | 430524810e67d3c223a2ab819f45b882b419c45d (patch) | |
tree | 0abb4b2dd3dabc414c755c30e52d0b5022ee8670 /src/daemon.cc | |
parent | 0836a6e06f86e366017da3b2b2c132b3a4f2c877 (diff) |
Incorporated the use of the Info object everywhere... also using the log functionality.
Diffstat (limited to 'src/daemon.cc')
-rw-r--r-- | src/daemon.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon.cc b/src/daemon.cc index 95cf0df..e80af78 100644 --- a/src/daemon.cc +++ b/src/daemon.cc @@ -40,7 +40,7 @@ Daemon::~Daemon() int Daemon::run(uid_t uid, gid_t gid) { int f; - int fd; + // int fd; chdir("/"); umask(0); @@ -62,13 +62,13 @@ int Daemon::run(uid_t uid, gid_t gid) fprintf(stderr, "Failed to change to uid %d, quitting.\n", uid); return 1; } - + /* // Redirect stdin, stdout and stderr to /dev/null fd = open("/dev/null", O_NOCTTY | O_RDWR, 0666); dup2(0, fd); dup2(1, fd); dup2(2, fd); - + */ setsid(); signal (SIGTERM, SIG_IGN); |