]> git.ipfire.org Git - thirdparty/dbus.git/commit
kqueue: open watched directories with close-on-exec flag
authorChengwei Yang <chengwei.yang@intel.com>
Mon, 2 Dec 2013 04:47:47 +0000 (12:47 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 6 Jan 2014 16:04:44 +0000 (16:04 +0000)
commitf4618906b0dce251cdc3125b60239f7dd0df7183
tree9edddbd883648e47c59292686048fef75d74d043
parent854554c3a67b880ac92fa72c476b772cb5968b26
kqueue: open watched directories with close-on-exec flag

[FreeBSD and OpenBSD contributors clarified that O_CLOEXEC has been
supported for ~ 2 years on both, so for the moment we're assuming
that every platform with kqueue also has working O_CLOEXEC. Please reopen
the bug, with a tested patch that uses _dbus_fd_set_close_on_exec() instead,
if this assumption turns out to be false. -smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72213
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/dir-watch-kqueue.c