Add signal handlers so we clean up before exiting.
Add SIGTERM and SIGINT signal handlers so that we run the exit handlers before exiting when getting these signals. Fixes an issue where we couldn't run vi after CTRL+C'ing node because the stdin fd was left non-blocking.
parent
0fcb3bd3
Please register or sign in to comment