Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore fd_close(3) to avoid breaking POSIX programs that blindly close all file descriptors #4215

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Sep 14, 2023

This adds a hack that ignores fd_close(3) so POSIX programs that blindly close all file descriptors other than stdin/stdout/stderr don't lock themselves out of the filesystem.

See @ptitSeb's troubleshooting on Slack for more context.

It's pretty difficult to write tests for WASIX syscalls at the moment, so I'm just going to test manually.

@ptitSeb ptitSeb enabled auto-merge (squash) September 14, 2023 06:11
@ptitSeb ptitSeb merged commit 52584f5 into master Sep 14, 2023
53 checks passed
@ptitSeb ptitSeb deleted the fd-close-3 branch September 14, 2023 06:37
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.

3 participants