summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authordeva <deva>2010-07-07 13:22:27 +0000
committerdeva <deva>2010-07-07 13:22:27 +0000
commit75f5863a46a257fe2fa0dd809e8723e38b90eb46 (patch)
treeffab2d2dd74dc2f1886e34eb56d8fa553a9f293f /server/src
parent66e9a0322ba241a375ddb145ff468454b2baf715 (diff)
Remove check for pid-file existance. Daemon should always overwrite.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/daemon.cc2
1 files changed, 2 insertions, 0 deletions
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) {