8000 daemon: Ensure stdio fds are open at startup by hsorbo · Pull Request #8 · frida/idun · GitHub
[go: up one dir, main page]

Skip to content

daemon: Ensure stdio fds are open at startup - #8

Open
hsorbo wants to merge 1 commit into
mainfrom
fds-cleanup
Open

hsorbo wants to merge 1 commit into
mainfrom
fds-cleanup

Conversation

@hsorbo
@hsorbo hsorbo commented Nov 6, 2026
Copy link
Copy Markdown
Member

When spawned with stderr closed, e.g. by Node.js, which marks its stdio close-on-exec, the main loop's wakeup fd got allocated as fd 2, only to be replaced with /dev/null by detach_from_terminal(). The main loop then spun at 100% CPU polling /dev/null.

When spawned with stderr closed, e.g. by Node.js, which marks its stdio
close-on-exec, the main loop's wakeup fd got allocated as fd 2, only to
be replaced with /dev/null by detach_from_terminal(). The main loop then
spun at 100% CPU polling /dev/null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0