nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 799b8fd3782e55149bcfa9ec1c6d1002a7eb11da
parent 30bd6a4e334743042914a140a392628bc8906218
Author: NRK <nrk@disroot.org>
Date:   Tue, 15 Feb 2022 19:02:21 +0600

don't leak inotify_fd to plugins

Closes: https://github.com/jarun/nnn/issues/1291

Co-authored-by: Daniel Eklöf <daniel@ekloef.se>

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -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;