Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff311008 authored by Eric Paris's avatar Eric Paris
Browse files

inotify: fix inotify oneshot support



During the large inotify rewrite to fsnotify I completely dropped support
for IN_ONESHOT.  Reimplement that support.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent e4e047a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -126,6 +126,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
			ret = 0;
	}

	if (fsn_mark->mask & IN_ONESHOT)
		fsnotify_destroy_mark(fsn_mark);

	/*
	 * If we hold the fsn_mark until after the event is on the queue
	 * IN_IGNORED won't be able to pass this event in the queue