File tree Expand file tree Collapse file tree 5 files changed +14
-16
lines changed Expand file tree Collapse file tree 5 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 2
2
**
3
3
** Copyright (C) 2014 Digia Plc
4
4
** 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
6
6
**
7
7
** This file is part of QtEnterprise Embedded.
8
8
**
12
12
** a written agreement between you and Digia.
13
13
**
14
14
** 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
16
16
**
17
17
****************************************************************************/
18
18
@@ -230,8 +230,6 @@ int main(int argc, char **argv)
230
230
return 1 ;
231
231
}
232
232
233
- ::setpgid (0 ,0 ); // must be called before setsid()
234
- ::setsid ();
235
233
Config config = parseConfigFile ();
236
234
237
235
while (!args.isEmpty ()) {
@@ -249,6 +247,8 @@ int main(int argc, char **argv)
249
247
}
250
248
} else if (arg == " --debug-gdb" ) {
251
249
useGDB = true ;
250
+ setpgid (0 ,0 ); // must be called before setsid()
251
+ setsid ();
252
252
} else if (arg == " --debug-qml" ) {
253
253
useQML = true ;
254
254
} else if (arg == " --stop" ) {
Original file line number Diff line number Diff line change 2
2
**
3
3
** Copyright (C) 2014 Digia Plc
4
4
** 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
6
6
**
7
7
** This file is part of QtEnterprise Embedded.
8
8
**
12
12
** a written agreement between you and Digia.
13
13
**
14
14
** 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
16
16
**
17
17
****************************************************************************/
18
18
Original file line number Diff line number Diff line change 2
2
**
3
3
** Copyright (C) 2014 Digia Plc
4
4
** 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
6
6
**
7
7
** This file is part of QtEnterprise Embedded.
8
8
**
12
12
** a written agreement between you and Digia.
13
13
**
14
14
** 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
16
16
**
17
17
****************************************************************************/
18
18
Original file line number Diff line number Diff line change 2
2
**
3
3
** Copyright (C) 2014 Digia Plc
4
4
** 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
6
6
**
7
7
** This file is part of QtEnterprise Embedded.
8
8
**
12
12
** a written agreement between you and Digia.
13
13
**
14
14
** 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
16
16
**
17
17
****************************************************************************/
18
18
@@ -222,14 +222,12 @@ void Process::stop()
222
222
if (kill (mDebuggee , SIGKILL) != 0 )
223
223
perror (" Could not kill debugee" );
224
224
}
225
+ if (kill (-getpid (), SIGTERM) != 0 )
226
+ perror (" Could not kill process group" );
225
227
226
228
mProcess ->terminate ();
227
229
if (!mProcess ->waitForFinished ())
228
230
mProcess ->kill ();
229
-
230
- // Just for completeness terminate the whole group
231
- // in case the application has started subprocesses
232
- ::kill (-getpid(), SIGTERM);
233
231
}
234
232
235
233
void Process::incomingConnection (int i)
Original file line number Diff line number Diff line change 2
2
**
3
3
** Copyright (C) 2014 Digia Plc
4
4
** 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
6
6
**
7
7
** This file is part of QtEnterprise Embedded.
8
8
**
12
12
** a written agreement between you and Digia.
13
13
**
14
14
** 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
16
16
**
17
17
****************************************************************************/
18
18
You can’t perform that action at this time.
0 commit comments