added setsid() to properly detach from console
This commit is contained in:
1 parent
432b298e40
commit
5e564f2bff
1 file changed
+1
@@ -276,6 +276,7 @@ int main (int argc, char **argv)
|
||||
dup2(fnull, STDERR_FILENO);
|
||||
close(fnull);
|
||||
}
|
||||
setsid();
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
|
||||
Reference in new issue
Block a user