Commit 760b6385 authored by Jasmin Hassan's avatar Jasmin Hassan Committed by topjohnwu

list_monitor: use IN_CLOSE_WRITE instead of IN_MODIFY

parent 91527500
...@@ -15,7 +15,7 @@ void *monitor_list(void *path) { ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment