From 760b6385f13f1cfceabd97c2342f7b2113e5a600 Mon Sep 17 00:00:00 2001 From: Jasmin Hassan Date: Sun, 26 Mar 2017 07:20:40 +0200 Subject: [PATCH] list_monitor: use IN_CLOSE_WRITE instead of IN_MODIFY --- jni/magiskhide/list_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/magiskhide/list_monitor.c b/jni/magiskhide/list_monitor.c index 21471aeb6..1440f770d 100644 --- a/jni/magiskhide/list_monitor.c +++ b/jni/magiskhide/list_monitor.c @@ -15,7 +15,7 @@ void *monitor_list(void *path) { fprintf(logfile, "MagiskHide: Unable to watch %s\n", listpath); 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); exit(1); }