diff --git a/src/main.cc b/src/main.cc index 7af8c0cb..e0ce1935 100644 --- a/src/main.cc +++ b/src/main.cc @@ -543,6 +543,7 @@ pid_t fork_server_to_background() if (pid_t pid = fork()) return pid; + setsid(); if (fork()) // double fork to orphan the server exit(0);