chiark / gitweb /
.network/.netdev/.link: allow to match on architecture
[elogind.git] / src / udev / udevd.c
index 9d7fa033b637f40e55c6cd2816129cc56015540c..f21c227d173c02f53b35dc814593592dac72179e 100644 (file)
@@ -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");