[PATCH] ext/fcntl/fcntl.c: add F_DUPFD_CLOEXEC constant
It's in POSIX.1-2008 and will be useful when Ruby becomes more
If/when 1291 goes through I'd also like IO#dup to work with the dup3()
system call, but this patch is much less intrusive.
#3 [ruby-core:37624] Updated by kosaki (Motohiro KOSAKI) over 5 years ago
- Assignee set to kosaki (Motohiro KOSAKI)
- Status changed from Open to Assigned
why not just give this to io.c/file.c maintainers?
We don't have io.c/file.c maintainers too. Anyway I assigned it to me. Please stop annoying ping pong.
#4 [ruby-core:37710] Updated by kosaki (Motohiro KOSAKI) over 5 years ago
- Status changed from Assigned to Feedback
I've reviewed linux kernel source code and concluded this patch doesn't have the same issue with O_CLOEXEC when run on older kernels. So, I'll commit the patch if you make test case.
#5 [ruby-core:37713] Updated by normalperson (Eric Wong) over 5 years ago
Also pushed to "fcntl-dupfd-cloexec" branch of git://bogomips.org/ruby.git