mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio + inotify support for hard links
Add a new GFileMonitorFlag: G_FILE_MONITOR_WATCH_HARD_LINKS. When set, changes made to the file via another hard link will be detected. Implement the new flag for the inotify backend. https://bugzilla.gnome.org/show_bug.cgi?id=532815
This commit is contained in:
@@ -96,7 +96,7 @@ g_inotify_directory_monitor_constructor (GType type,
|
||||
|
||||
pair_moves = G_LOCAL_DIRECTORY_MONITOR (obj)->flags & G_FILE_MONITOR_SEND_MOVED;
|
||||
|
||||
sub = _ih_sub_new (dirname, NULL, pair_moves, inotify_monitor);
|
||||
sub = _ih_sub_new (dirname, NULL, pair_moves, FALSE, inotify_monitor);
|
||||
/* FIXME: what to do about errors here? we can't return NULL or another
|
||||
* kind of error and an assertion is probably too hard */
|
||||
g_assert (sub != NULL);
|
||||
|
Reference in New Issue
Block a user