Loading init/keychords.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ void GeteventOpenDevice() { inotify_fd = ::inotify_init1(IN_NONBLOCK | IN_CLOEXEC); if (inotify_fd < 0) { PLOG(WARNING) << "Could not instantiate inotify for " << kDevicePath; } else if (::inotify_add_watch(inotify_fd, kDevicePath, IN_DELETE | IN_CREATE) < 0) { } else if (::inotify_add_watch(inotify_fd, kDevicePath, IN_DELETE | IN_CREATE | IN_ONLYDIR) < 0) { PLOG(WARNING) << "Could not add watch for " << kDevicePath; ::close(inotify_fd); inotify_fd = -1; Loading Loading
init/keychords.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ void GeteventOpenDevice() { inotify_fd = ::inotify_init1(IN_NONBLOCK | IN_CLOEXEC); if (inotify_fd < 0) { PLOG(WARNING) << "Could not instantiate inotify for " << kDevicePath; } else if (::inotify_add_watch(inotify_fd, kDevicePath, IN_DELETE | IN_CREATE) < 0) { } else if (::inotify_add_watch(inotify_fd, kDevicePath, IN_DELETE | IN_CREATE | IN_ONLYDIR) < 0) { PLOG(WARNING) << "Could not add watch for " << kDevicePath; ::close(inotify_fd); inotify_fd = -1; Loading