Skip to content

Conversation

@akash-akya
Copy link
Owner

Fixes #49
Related to #54

- Remove slow fd-closing loop that iterated up to _SC_OPEN_MAX
- Fix incorrect O_CLOEXEC usage on pipes (use FD_CLOEXEC via fcntl)
- Fix null_fd leak when redirecting stderr to /dev/null
- Add portable SOCK_CLOEXEC support with fallback for macOS
The BEAM needs time to detect when a process dies and send the
exit_status message. Without a grace period, the exit sequence would
immediately check if the process exited after sending SIGKILL, often
before the BEAM had received the notification.
@akash-akya akash-akya merged commit ecc7aa5 into master Jan 16, 2026
17 of 18 checks passed
@akash-akya akash-akya deleted the fix-fd-limit branch January 16, 2026 11:42
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.

Performance issue on aws

2 participants