mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
don't leak inotify_fd to plugins
Closes: https://github.com/jarun/nnn/issues/1291 Co-authored-by: Daniel Eklöf <daniel@ekloef.se>
This commit is contained in:
parent
30bd6a4e33
commit
799b8fd378
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue