Answers for "javascript kill on ctrl-c"

0

javascript kill on ctrl-c

process.on('SIGINT', function() {
  console.log("\nGracefully shutting down from SIGINT (Ctrl+C)");

  console.log("Disabling Adapter...");
  wireless.disable(function() {

    console.log("Stopping Wireless App...");
    wireless.stop(function() {

      console.log("Exiting...");
      process.exit();
    });
  });
});
Posted by: Guest on April-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language