]> Sergey Matveev's repositories - nnn.git/commitdiff
Notify FIFO readers on exit (if any) (#581)
authorlvgx <l@vgx.fr>
Tue, 19 May 2020 16:59:13 +0000 (18:59 +0200)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 16:59:13 +0000 (22:29 +0530)
This allows to close preview windows opened just before exiting nnn.

src/nnn.c

index c5a5e89ba1cd6fa510fe04ec5745b91341505e86..8d6db36946a0d03e47e127c794ca4b88c5ae153d 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7291,6 +7291,7 @@ int main(int argc, char *argv[])
 #endif
 
 #ifndef NOFIFO
+       notify_fifo();
        if (fifofd != -1)
                close(fifofd);
 #endif