Browse Source

Fix test-signal-handler.js on macintosh - pause before exit.

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b76d853f0d
  1. 3
      test/mjsunit/test-signal-handler.js

3
test/mjsunit/test-signal-handler.js

@ -5,7 +5,10 @@ if (process.ARGV[2] === "-child") {
var handler = new node.SignalHandler(node.SIGUSR1);
handler.addListener("signal", function() {
node.stdio.write("handled SIGUSR1");
setTimeout(function () {
// Allow some time for the write to go through the pipez
process.exit(0);
}, 50);
});
debug("CHILD!!!");

Loading…
Cancel
Save