-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Nested child_processes piping to stdout cause freeze #1726
Comments
Which node version is this? |
Sorry, forgot that. Master branch, 0.5.8-pre, 243c218. |
definitely a bug. the test has been landed in master but is broken. works in windows! |
Root cause: https://github.com/joyent/node/blob/3aa1975c5837a160b849d2b81fc7a4bcd7870155/src/node.js#L232 This is decreasing the libev loop reference count, libev has asserts to check for this (at least when the This example is illustrative: console.error("process.stdout._type = " + process.stdout._type);
process.stdout.write('hello world\n');
process.stdout.end(); After Probably we need to stop using libev's reference counter. This has been a long time in the coming. I landed some tests in libuv in preparation for this switch |
The above hack is pretty awful. It would be nice have the ability to "unref" a whole handle in libuv. |
@ry -
|
Test script:
Output:
The text was updated successfully, but these errors were encountered: