2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

fsnotify: fanotify -- Take into accout global flag assigned to fanotify object

Just missed it in first place.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2013-01-16 02:22:10 +04:00
committed by Pavel Emelyanov
parent 27c8a3cf65
commit 12b579bac0

View File

@@ -387,6 +387,7 @@ static int open_fanotify_fd(struct file_desc *d)
info = container_of(d, struct fsnotify_file_info, d);
flags = info->ffe->faflags;
if (info->ffe->flags & O_CLOEXEC)
flags |= FAN_CLOEXEC;
if (info->ffe->flags & O_NONBLOCK)