Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

uv_spawn won't duplicate the same original fd to two fds in the child #1074

Closed
sam-github opened this issue Jan 9, 2014 · 1 comment
Closed

Comments

@sam-github
Copy link

Instead, it results in the child not having a valid fd at that position.

Reproduceable in node with https://gist.github.com/sam-github/8341916

strace shows what's happening in child: https://gist.github.com/sam-github/8341573

This results in fd 2 in child not being valid (an unusual condition, which libuv tries to avoid). The invalidity causes and write to fd 2 (console.error in node), to cause node to terminate (seemingly silently, its probably trying to write a stack trace, but since that would go to stderr, that doesn't work so well).

@indutny
Copy link
Contributor

indutny commented Jan 20, 2014

Should be fixed by #1083 , please verify.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants