src/nnn.c | 2 +- diff --git a/src/nnn.c b/src/nnn.c index 069599b3e18a4dfbf45d8e1f88a23a5f31d1d9f9..73e656ce2b14d3645c025b7b0fa5266ce0b2cc09 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4679,7 +4679,7 @@ #ifndef NOFIFO static void notify_fifo() { if (fifofd == -1) { - fifofd = open(fifopath, O_WRONLY|O_NONBLOCK); + fifofd = open(fifopath, O_WRONLY|O_NONBLOCK|O_CLOEXEC); if (fifofd == -1) { if (errno != ENXIO) /* Unexpected error, the FIFO file might have been removed */