Terminate GDB by closing its input rather than by SIGTERM.
commit7eff2507619429429760e25762bc74a4d743b875
authorJohannes Sixt <j6t@kdbg.org>
Sun, 22 Feb 2015 19:51:01 +0000 (22 20:51 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 22 Feb 2015 19:51:37 +0000 (22 20:51 +0100)
treed14a59527a84a09292de3f12f2e448a4608881a9
parent7f0e7f7d71e5e75d9544e0171b6f7555734e989b
Terminate GDB by closing its input rather than by SIGTERM.

Recent GDBs seem to catch SIGTERM without terminating. As a consequence,
our request to terminate is not honored, keeping us in a 20 seconds delay
loop in KDebugger::stopDriver().

Use a different tactic to terminate GDB: close its input channel.
kdbg/gdbdriver.cpp