summaryrefslogtreecommitdiff
path: root/src/settings/nm-inotify-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/nm-inotify-helper.c')
-rw-r--r--src/settings/nm-inotify-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-inotify-helper.c b/src/settings/nm-inotify-helper.c
index ce15246c5..46112648e 100644
--- a/src/settings/nm-inotify-helper.c
+++ b/src/settings/nm-inotify-helper.c
@@ -128,7 +128,7 @@ init_inotify (NMInotifyHelper *self)
GIOChannel *channel;
guint source_id;
- priv->ifd = inotify_init ();
+ priv->ifd = inotify_init1 (IN_CLOEXEC);
if (priv->ifd == -1) {
int errsv = errno;