This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Handling CTRL+C and Process killing on Windows #5054
Labels
Comments
This should fix the problem. |
I pushed a patch that enables some signal support on windows. Short story: you can expect The long story comes from uv.h:
|
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Under Xubuntu 12.10 and Debian 6 i am able to catch the Signals from the Kernel. On Windows i am not able to do this (it doesnt support it). So i assume that the exit event gets fired in all cases (CTRL+C and killed from Taskmanger). But if i want to catch a CTRL+C i must set the stdin to rawMode and add a keypressemitter. This breaks my code.
Expected Result:
Hitting CTRL+C on Windows: "Bye"
Killing it with the Taskmanager: "Bye"
Killing it on Linux (SIGTERM): "Bye"
Hitting CTRL+C on Linux: "Bye"
Current Result:
Hitting CTRL+C on Windows:
Killing it with the Taskmanager:
Killing it on Linux (SIGTERM): "Bye"
Hitting CTRL+C on Linux: "Bye"
The text was updated successfully, but these errors were encountered: