From fd5ef816e3a5d2ee195feba5fe2819436072d955 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Sun, 17 Nov 2013 18:32:51 +0100 Subject: [PATCH] I do not think daemonize function is needed. Remove it once I get time and just use setsid function. --- Daemon/javafork.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Daemon/javafork.c b/Daemon/javafork.c index 2f56b58..63f1f25 100644 --- a/Daemon/javafork.c +++ b/Daemon/javafork.c @@ -64,10 +64,7 @@ int main (int argc, char *argv[]) return -1; /*Changing session.*/ - if (setsid() < 0) { - syslog (LOG_ERR, "setsid failed: %m"); - return -1; - } + setsid(); opterr = 0; -- 2.1.4