Permalink
Browse files

windows: uv_kill and uv_process_kill to terminate the process on SIGINT

  • Loading branch information...
1 parent 1393ee7 commit ee8a681ace4589fc7b0069ec5e604a3a90a66a12 Igor Zinkovsky committed Nov 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/win/process.c
View
2 src/win/process.c
@@ -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_;

0 comments on commit ee8a681

Please sign in to comment.