Parent Directory | Revision Log | Patch
revision 157 by torben, Mon Dec 8 21:28:40 2008 UTC | revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC | |
---|---|---|
# | Line 12 | Line 12 |
12 | ||
13 | #include "ConfigFile.h" | #include "ConfigFile.h" |
14 | #include "daemon.h" | #include "daemon.h" |
15 | #include "common.h" | #include "Common.h" |
16 | #include "Logger.h" | #include "Logger.h" |
17 | ||
18 | ||
# | Line 74 void lookup_uid_values() | Line 74 void lookup_uid_values() |
74 | ||
75 | void daemonCleanup() | void daemonCleanup() |
76 | { | { |
77 | unlink( Common::instance()->pidfile.c_str() ); | Common* cmn = Common::instance(); |
78 | Logger::logMessage("Cleaning up daemon"); | |
79 | ||
80 | seteuid(0); | |
81 | setegid(0); | |
82 | unlink( cmn->pidfile.c_str() ); | |
83 | ||
84 | } | } |
85 | ||
86 | void daemonize() | void daemonize() |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |