-
Notifications
You must be signed in to change notification settings - Fork 5
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
Should O_CLOEXEC be set on POSIX? #21
Comments
I think we discussed this already in #5 and the verdict was that this library tries to stay as close to base behavior as possible. You can use setCloseOnExec explicitly. |
It isn't thread-safe since another thread can fork the executable between open and setCloseOnExec. |
We can provide a variant Internal modules still follow PVP, but may not have deprecation periods. |
Sounds good. |
Updated haskell/directory#179 to use |
Published it: https://hackage.haskell.org/package/file-io-0.1.2 |
Another diff observed while trying to migrate directory to file-io (#4 (comment)):
Should files opened by file-io set O_CLOEXEC to prevent them from being inherited by child processes?
The text was updated successfully, but these errors were encountered: