Thoughts on using flag `O_CLOEXEC` for unix source sets?
05nelsonm opened this issue · comments
Matthew Nelson commented
Wanted to pop in and ask about the possibility of always opening descriptors with the O_CLOEXEC
flag, or utilizing the e
flag with fopen
.
EDIT: Can sling up a PR if it would be an acceptable addition to the library!
Jesse Wilson commented
Yeah, seems quite reasonable. Do you have a specific use case? I’m curious about forking and execing in Kotlin/Native and haven’t seen many examples.
Jesse Wilson commented
Please send a PR!
Matthew Nelson commented
Do you have a specific use case?
Not really, just thought it'd be an easy win for everyone.
I’m curious about forking and execing in Kotlin/Native and haven’t seen many examples