summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 676b4ab..51e69d1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -230,6 +230,8 @@ int main(int argc, char **argv)
return 1;
}
+ ::setpgid(0,0); // must be called before setsid()
+ ::setsid();
Config config = parseConfigFile();
while (!args.isEmpty()) {
@@ -247,8 +249,6 @@ int main(int argc, char **argv)
}
} else if (arg == "--debug-gdb") {
useGDB = true;
- setpgid(0,0); // must be called before setsid()
- setsid();
} else if (arg == "--debug-qml") {
useQML = true;
} else if (arg == "--stop") {