-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[5.1] SR-11354: Foundation.Process inherits file descriptors into the child process #2608
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
Conversation
Android and possibly other UNIX systems lack getdtablesize() so let's try to use a better way of estimating the file descriptors we need to close post-fork, pre-exec by listing /proc/self/fd. If that fails, we fall back on getdtablesize or as a last resort a hard-coded 4096. (cherry picked from commit 077775e)
@swift-ci please test |
Thanks for the backport! I will review this once @millenomi has reviewed the 5.2 patch in #2607 |
@swift-ci please test |
Would it be possible to squash these commits into one before merging just to keep the history a bit cleaner, (same with the other PR). Thanks. |
@spevans our current backport rules say |
@swift-ci please test |
@swift-ci please test |
1 similar comment
@swift-ci please test |
@kevints the 5.2 backport is merged |
@swift-ci test and merge |
This is a backport of #2542 & #2586 which together fix https://bugs.swift.org/browse/SR-11354 which is an important bug fix.
Same as #2607 but this one is for 5.1