Skip to content

Instantly share code, notes, and snippets.

@zimbatm
Created April 26, 2010 16:33
Show Gist options
  • Save zimbatm/379557 to your computer and use it in GitHub Desktop.
Save zimbatm/379557 to your computer and use it in GitHub Desktop.
Signal unregistration test
var sys = require("sys"), b;
b = process.binding('signal_watcher');
(function () {
var w = new b.SignalWatcher(process["SIGINT"]);
w.stop();
})();
setInterval(function() { sys.puts("noop"); }, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment