Skip to content

Commit fe76b7a

Browse files
author
Kalle Viironen
committed
Merge branch 'stable' into dev
* stable: Revert "Always create a process group and session" Change copyright notice Change-Id: I0ecba1dc7d5eb62bc4f757d3de6fa64aa60572d5
2 parents 22d4670 + 1dbc312 commit fe76b7a

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**
33
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
5-
** For any questions to Digia, please use contact form at http://qt.digia.com
5+
** For any questions to Digia, please use contact form at http://www.qt.io
66
**
77
** This file is part of QtEnterprise Embedded.
88
**
@@ -12,7 +12,7 @@
1212
** a written agreement between you and Digia.
1313
**
1414
** If you have questions regarding the use of this file, please use
15-
** contact form at http://qt.digia.com
15+
** contact form at http://www.qt.io
1616
**
1717
****************************************************************************/
1818

@@ -230,8 +230,6 @@ int main(int argc, char **argv)
230230
return 1;
231231
}
232232

233-
::setpgid(0,0); // must be called before setsid()
234-
::setsid();
235233
Config config = parseConfigFile();
236234

237235
while (!args.isEmpty()) {
@@ -249,6 +247,8 @@ int main(int argc, char **argv)
249247
}
250248
} else if (arg == "--debug-gdb") {
251249
useGDB = true;
250+
setpgid(0,0); // must be called before setsid()
251+
setsid();
252252
} else if (arg == "--debug-qml") {
253253
useQML = true;
254254
} else if (arg == "--stop") {

portlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**
33
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
5-
** For any questions to Digia, please use contact form at http://qt.digia.com
5+
** For any questions to Digia, please use contact form at http://www.qt.io
66
**
77
** This file is part of QtEnterprise Embedded.
88
**
@@ -12,7 +12,7 @@
1212
** a written agreement between you and Digia.
1313
**
1414
** If you have questions regarding the use of this file, please use
15-
** contact form at http://qt.digia.com
15+
** contact form at http://www.qt.io
1616
**
1717
****************************************************************************/
1818

portlist.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**
33
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
5-
** For any questions to Digia, please use contact form at http://qt.digia.com
5+
** For any questions to Digia, please use contact form at http://www.qt.io
66
**
77
** This file is part of QtEnterprise Embedded.
88
**
@@ -12,7 +12,7 @@
1212
** a written agreement between you and Digia.
1313
**
1414
** If you have questions regarding the use of this file, please use
15-
** contact form at http://qt.digia.com
15+
** contact form at http://www.qt.io
1616
**
1717
****************************************************************************/
1818

process.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**
33
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
5-
** For any questions to Digia, please use contact form at http://qt.digia.com
5+
** For any questions to Digia, please use contact form at http://www.qt.io
66
**
77
** This file is part of QtEnterprise Embedded.
88
**
@@ -12,7 +12,7 @@
1212
** a written agreement between you and Digia.
1313
**
1414
** If you have questions regarding the use of this file, please use
15-
** contact form at http://qt.digia.com
15+
** contact form at http://www.qt.io
1616
**
1717
****************************************************************************/
1818

@@ -222,14 +222,12 @@ void Process::stop()
222222
if (kill(mDebuggee, SIGKILL) != 0)
223223
perror("Could not kill debugee");
224224
}
225+
if (kill(-getpid(), SIGTERM) != 0)
226+
perror("Could not kill process group");
225227

226228
mProcess->terminate();
227229
if (!mProcess->waitForFinished())
228230
mProcess->kill();
229-
230-
// Just for completeness terminate the whole group
231-
// in case the application has started subprocesses
232-
::kill(-getpid(), SIGTERM);
233231
}
234232

235233
void Process::incomingConnection(int i)

process.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**
33
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
5-
** For any questions to Digia, please use contact form at http://qt.digia.com
5+
** For any questions to Digia, please use contact form at http://www.qt.io
66
**
77
** This file is part of QtEnterprise Embedded.
88
**
@@ -12,7 +12,7 @@
1212
** a written agreement between you and Digia.
1313
**
1414
** If you have questions regarding the use of this file, please use
15-
** contact form at http://qt.digia.com
15+
** contact form at http://www.qt.io
1616
**
1717
****************************************************************************/
1818

0 commit comments

Comments
 (0)