diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-11-28 17:39:14 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-11-28 17:39:14 +0000 |
commit | 409d58d0b63a113b29d8ce7c75a70e6dbbb39e69 (patch) | |
tree | 27a2526d6fc3b4600f18572e77f9fb8890ccfb39 /src/daemon.hpp | |
parent | fixed datatypes (really using boost now) (diff) |
added compile time options NOCRYPT,NODAEMON,NOEXEC for easyier windows porting
moved crypto init functions to cryptinit.hpp and exec to sysexec.hpp (as this will be platform dependant)
Diffstat (limited to 'src/daemon.hpp')
-rw-r--r-- | src/daemon.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/daemon.hpp b/src/daemon.hpp index 13c4132..be5c710 100644 --- a/src/daemon.hpp +++ b/src/daemon.hpp @@ -1,3 +1,6 @@ +#ifndef _DAEMON_HPP +#define _DAEMON_HPP +#ifndef NODAEMON void chrootAndDrop(std::string const& chrootdir, std::string const& username) { @@ -51,5 +54,6 @@ void daemonize() dup(fd); // stderr umask(027); } - +#endif +#endif |