summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@digia.com>2014-10-07 14:37:23 +0200
committerRainer Keller <rainer.keller@theqtcompany.com>2014-10-07 15:42:43 +0300
commit1dbc31296d393bb542b0a99f7047dcb13aae3ce3 (patch)
treef7f2a90e30503d9be1456f3bc8c64451d077ef57 /main.cpp
parentd09694b1d6ffd3cae744e5e1460c673333a9811a (diff)
Revert "Always create a process group and session"QtEE_v3.2.0
This change introduces bug QTEE-784. This reverts commit 224cdd83d41d659ec166f7177a549d391ed1d5cc. Change-Id: I925b0fa4b75b22a19374a5229eb651df2352aa00 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
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 dd5ce1e..3fa2a14 100644
--- a/main.cpp
+++ b/main.cpp
@@ -230,8 +230,6 @@ int main(int argc, char **argv)
return 1;
}
- ::setpgid(0,0); // must be called before setsid()
- ::setsid();
Config config = parseConfigFile();
while (!args.isEmpty()) {
@@ -249,6 +247,8 @@ 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") {