Skip to content
Snippets Groups Projects
Commit 8fd62af5 authored by Jonas Berlin's avatar Jonas Berlin Committed by GitHub
Browse files

Use SIGINT instead of SIGHUP to kill child

`kill("SIGHUP")` does not work on Windows:

Error: kill ENOSYS
    at exports._errnoException (util.js:870:11)
    at ChildProcess.kill (internal/child_process.js:374:13)
    at Worker.terminate (C:\Users\xkr47\project\node_modules\tiny-worker\lib\index.js:55:15)

SIGINT works however, and fix confirmed elsewhere also: https://github.com/balderdashy/sails/issues/846#issuecomment-25187082
parent 6ae5234a
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ class Worker { ...@@ -38,7 +38,7 @@ class Worker {
} }
terminate () { terminate () {
this.child.kill("SIGHUP"); this.child.kill("SIGINT");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment