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
1 changed files with 1 additions and 1 deletions

View File

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