diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2008-01-14 18:17:53 -0500 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2008-01-14 18:17:53 -0500 |
commit | cbf5d0b6fab515948155d0816ed84657f5e8ebb3 (patch) | |
tree | bff3544e1a106f04cea20a21a843741db6431517 /bus/dir-watch-dnotify.c | |
parent | c8e29a910b33911a5d695976a78ae3705819745f (diff) |
watch for file creates in dnotify
2008-01-14 John (J5) Palmieri <johnp@redhat.com>
* patch by Frederic Crozat <fcrozat at mandriva dot com>
* bus/dir-watch-dnotify.c (bus_watch_directory): watch for file
creates also
Diffstat (limited to 'bus/dir-watch-dnotify.c')
-rw-r--r-- | bus/dir-watch-dnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/dir-watch-dnotify.c b/bus/dir-watch-dnotify.c index 88d598a9..0f6390cd 100644 --- a/bus/dir-watch-dnotify.c +++ b/bus/dir-watch-dnotify.c @@ -60,7 +60,7 @@ bus_watch_directory (const char *dir, BusContext *context) goto out; } - if (fcntl (fd, F_NOTIFY, DN_DELETE|DN_RENAME|DN_MODIFY) == -1) + if (fcntl (fd, F_NOTIFY, DN_CREATE|DN_DELETE|DN_RENAME|DN_MODIFY) == -1) { _dbus_warn ("Cannot setup D_NOTIFY for '%s' error '%s'\n", dir, _dbus_strerror (errno)); close (fd); |