From 75f5863a46a257fe2fa0dd809e8723e38b90eb46 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 7 Jul 2010 13:22:27 +0000 Subject: Remove check for pid-file existance. Daemon should always overwrite. --- server/src/daemon.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/src/daemon.cc b/server/src/daemon.cc index aabaa2f..8297111 100644 --- a/server/src/daemon.cc +++ b/server/src/daemon.cc @@ -103,6 +103,7 @@ int Daemon::run(const char *user, const char* group, bool detach, umask(0); + /* if(pidfile != "" ) { FILE *fp = fopen(pidfile.c_str(), "r"); if(fp != NULL) { @@ -113,6 +114,7 @@ int Daemon::run(const char *user, const char* group, bool detach, return -1; } } + */ if(detach) { if(daemon(0, 0) == -1) { -- cgit v1.2.3