windows: uv_kill and uv_process_kill to terminate the process on SIGINT
This commit is contained in:
parent
1393ee7d26
commit
ee8a681ace
@ -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_;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user