From f5e04ac9f41c7d200c205f5a2029c65e570f1326 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Wed, 8 Jul 2009 12:40:03 +0000 Subject: [PATCH] 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. --- core/org.eclipse.cdt.core.win32/library/starter/starter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp b/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp index 67473ec1c57..c8da78490f1 100644 --- a/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp +++ b/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp @@ -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);