projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2ca1e
)
Fix test-signal-handler.js on macintosh - pause before exit.
author
Ryan Dahl
<ry@tinyclouds.org>
Wed, 7 Oct 2009 13:39:39 +0000
(15:39 +0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 7 Oct 2009 13:39:39 +0000
(15:39 +0200)
test/mjsunit/test-signal-handler.js
patch
|
blob
|
history
diff --git
a/test/mjsunit/test-signal-handler.js
b/test/mjsunit/test-signal-handler.js
index
a7d6a58
..
7eb75cd
100644
(file)
--- a/
test/mjsunit/test-signal-handler.js
+++ b/
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");
- process.exit(0);
+ setTimeout(function () {
+ // Allow some time for the write to go through the pipez
+ process.exit(0);
+ }, 50);
});
debug("CHILD!!!");