Skip to content
Commit cb576d89 authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

inotify: Sort marks by wd before collecting them



The inotify_add_watch generates wd-s one-by one. We cannot
request for one, thus we call this syscall till the required
wd is generated.

Thus, if we want to restore several wd-s for an inotify, we
have to put them in ascending order. Otherwise we may restore
watch with higher wd earlier and will thus not be able to
generate the lower wd in a reasonable time.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent dc383649
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment