list_monitor: use IN_CLOSE_WRITE instead of IN_MODIFY

This commit is contained in:
Jasmin Hassan 2017-03-26 07:20:40 +02:00 committed by topjohnwu
parent 91527500f9
commit 760b6385f1

View File

@ -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);
} }