From: gu.martinm@gmail.com Date: Sun, 17 Nov 2013 17:32:51 +0000 (+0100) Subject: I do not think daemonize function is needed. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=fd5ef816e3a5d2ee195feba5fe2819436072d955;p=JavaTCPFork%2F.git I do not think daemonize function is needed. Remove it once I get time and just use setsid function. --- 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;