Re: I'm done with O_CLOEXEC
- From: Ryan Lortie <desrt desrt ca>
- To: Jürg Billeter <j bitron ch>
- Cc: gtk-devel-list gnome org
- Subject: Re: I'm done with O_CLOEXEC
- Date: Sat, 21 Mar 2015 01:32:53 -0400
hi,
On Sat, Mar 21, 2015, at 01:27, Jürg Billeter wrote:
Doesn't the following standard POSIX functionality provide what you
want?
fcntl(fd, F_DUPFD_CLOEXEC, 0)
Yes. It does. Thank you very much.
It seems that this is a (slightly) recent addition. It's documented:
F_DUPFD_CLOEXEC (int; since Linux 2.6.24)
so I'm sure we'll probably still need to write an ifdef with a
fallback...
The wider question about the usefulness of O_CLOEXEC still stands.
Cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]