Merge pull request #1307 from N-R-K/fd_leak

don't leak inotify_fd to plugins
This commit is contained in:
Arun 2022-02-15 19:48:53 +05:30 committed by GitHub
commit cb410e25d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8632,7 +8632,7 @@ int main(int argc, char *argv[])
#ifdef LINUX_INOTIFY #ifdef LINUX_INOTIFY
/* Initialize inotify */ /* Initialize inotify */
inotify_fd = inotify_init1(IN_NONBLOCK); inotify_fd = inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
if (inotify_fd < 0) { if (inotify_fd < 0) {
xerror(); xerror();
return EXIT_FAILURE; return EXIT_FAILURE;