Commit b106d1c5 authored by topjohnwu's avatar topjohnwu

Fix stupid mistake

parent 99db0672
......@@ -258,12 +258,10 @@ void update_inotify_mask() {
// Add /data/app itself to the watch list to detect app (un)installations/updates
xinotify_add_watch(new_inotify, DATA_APP, IN_CLOSE_WRITE | IN_MOVED_TO | IN_DELETE);
if (inotify_fd >= 0) {
// Swap and close old fd
int tmp = inotify_fd;
inotify_fd = new_inotify;
if (tmp >= 0)
close(tmp);
}
}
void proc_monitor() {
......
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