windows: uv_kill and uv_process_kill to terminate the process on SIGINT

This commit is contained in:
Igor Zinkovsky 2011-11-03 13:59:56 -07:00
parent 1393ee7d26
commit ee8a681ace

View File

@ -1059,7 +1059,7 @@ static uv_err_t uv__kill(HANDLE process_handle, int signum) {
DWORD status;
uv_err_t err;
if (signum == SIGTERM || signum == SIGKILL) {
if (signum == SIGTERM || signum == SIGKILL || signum == SIGINT) {
/* Kill the process. On Windows, killed processes normally return 1. */
if (TerminateProcess(process_handle, 1)) {
err = uv_ok_;