showing results for - "javascript kill on ctrl c"
Lucas
31 Nov 2020
1process.on('SIGINT', function() {
2  console.log("\nGracefully shutting down from SIGINT (Ctrl+C)");
3
4  console.log("Disabling Adapter...");
5  wireless.disable(function() {
6
7    console.log("Stopping Wireless App...");
8    wireless.stop(function() {
9
10      console.log("Exiting...");
11      process.exit();
12    });
13  });
14});
15
similar questions
queries leading to this page
javascript kill on ctrl c