Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js on ctrl c

process.on('SIGINT', function() {
    console.log("Caught interrupt signal");

    if (i_should_exit)
        process.exit();
});
 
PREVIOUS NEXT
Tagged: #node #js #ctrl
ADD COMMENT
Topic
Name
8+7 =