mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 02:57:38 +00:00
list_monitor: use IN_CLOSE_WRITE instead of IN_MODIFY
This commit is contained in:
parent
91527500f9
commit
760b6385f1
@ -15,7 +15,7 @@ void *monitor_list(void *path) {
|
|||||||
fprintf(logfile, "MagiskHide: Unable to watch %s\n", listpath);
|
fprintf(logfile, "MagiskHide: Unable to watch %s\n", listpath);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (inotify_add_watch(inotifyFd, listpath, IN_MODIFY) == -1) {
|
if (inotify_add_watch(inotifyFd, listpath, IN_CLOSE_WRITE) == -1) {
|
||||||
fprintf(logfile, "MagiskHide: Unable to watch %s\n", listpath);
|
fprintf(logfile, "MagiskHide: Unable to watch %s\n", listpath);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user