1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Addressed Anton's suggestion to specify the signal sans "SIG" when invoking the kill command, which is technically how it should be specified, though cygwin supports it either way.

This commit is contained in:
John Cortell 2009-07-08 12:40:03 +00:00
parent 37d3d2757e
commit f5e04ac9f4

View file

@ -357,7 +357,7 @@ int main() {
if (isCygwin(h[1])) {
// Need to issue a kill command
wchar_t kill[1024];
swprintf(kill, L"kill -SIG%s %d", signal, pi.dwProcessId);
swprintf(kill, L"kill -%s %d", signal, pi.dwProcessId);
if (!runCygwinCommand(kill)) {
// fall back to console event
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);