diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-13 14:59:56 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-02-21 10:05:34 -0500 |
commit | 4e918b7253bd541a76d3d9641d0be86dd8e132d3 (patch) | |
tree | 8839977cdc60aa636d33082a8816e7e934c0bfb4 /src/udev/udevd.c | |
parent | 9fa108ac48c9b76111589967184436bf63109731 (diff) |
everywhere: always use O_CLOEXEC where it makes sense
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index d9d3d85f8b..850e4f5ef6 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -734,7 +734,7 @@ static int handle_inotify(struct udev *udev) log_debug("device %s closed, synthesising 'change'", udev_device_get_devnode(dev)); strscpyl(filename, sizeof(filename), udev_device_get_syspath(dev), "/uevent", NULL); - fd = open(filename, O_WRONLY); + fd = open(filename, O_WRONLY|O_CLOEXEC); if (fd >= 0) { if (write(fd, "change", 6) < 0) log_debug("error writing uevent: %m"); |