Closed juntao closed 4 years ago
CTRL-C will send a SIGINT signal to the running process. You can send CTRL-C to a clean node.js server without SSVM, and you will find that the return value is 130 (SIGINT).
SSVM provides its own signal handling system to take over the system signal. When you send the CTRL-C, SSVM catches it first, then terminates itself, and report Aborted
.
If we don't want this error, we could disable the custom signal handler in SSVM. Please notice that all of the signals will not be handled by SSVM anymore after we disable this feature.
Hmm, I did not see this error in previous versions of the SSVM. I think the "right" behavior is to trap the signal and print "terminated by the user" on the console. Thanks.
We didn't change any API related with the signal handler.
It seems like you use CTRL-C to terminate the SSVM process not the node.js process? For example, if you run kmeans which takes so much time and you try to terminate it when SSVM is still running, then you will get this error message.
I think print terminated by the user
on the console is okay. Or we can make it silent just like node.js does, users send CTRL-C and it just terminated. Which one is better?
Let's do silent exit then. Thanks
Got it. Will be done in the next release.
When I press CTRL-C to quit a node.js server when running SSVM, it crashes with the following message.