mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
child_process_uv: fix test-child-process-stdin and -ipc
This commit is contained in:
2
Makefile
2
Makefile
@@ -239,6 +239,8 @@ UVTEST += simple/test-child-process-buffering
|
||||
UVTEST += simple/test-child-process-exec-cwd
|
||||
UVTEST += simple/test-child-process-cwd
|
||||
UVTEST += simple/test-child-process-env
|
||||
UVTEST += simple/test-child-process-stdin
|
||||
UVTEST += simple/test-child-process-ipc
|
||||
|
||||
|
||||
test-uv: all
|
||||
|
||||
@@ -191,13 +191,14 @@ function afterShutdown(status, handle, req) {
|
||||
var self = handle.socket;
|
||||
|
||||
assert.ok(self._flags & FLAG_SHUTDOWN);
|
||||
assert.ok(!self.writable);
|
||||
|
||||
// callback may come after call to destroy.
|
||||
if (self.destroyed) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (self._flags & FLAG_GOT_EOF) {
|
||||
if (self._flags & FLAG_GOT_EOF || !self.readable) {
|
||||
self.destroy();
|
||||
} else {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user