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:
parent
d1058f28e9
commit
91b0c128e8
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue