1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add check if inotify_rm_watch failed

This commit is contained in:
Stefan Lankes 2017-02-18 13:23:43 +01:00
parent d1058f28e9
commit 91b0c128e8

View file

@ -268,7 +268,10 @@ static void wait_hermit_available(void)
}
//printf("HermitCore is available\n");
inotify_rm_watch(fd, wd);
if (inotify_rm_watch(fd, wd) < 0) {
perror("inotify_rm_watch");
exit(1);
}
close(fd);
}