aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-05-19 18:59:13 +0200
committerGravatar GitHub <noreply@github.com>2020-05-19 22:29:13 +0530
commit0c916ae7b024c961df1ab1797035ee80501f66e3 (patch)
treee03ae173177826a85d6d488551063ca326bfad01 /src
parentb465bf9427c41bbc5d67dbdd27ed8a2617311b1d (diff)
downloadnnn-0c916ae7b024c961df1ab1797035ee80501f66e3.tar.gz
Notify FIFO readers on exit (if any) (#581)
This allows to close preview windows opened just before exiting nnn.
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index c5a5e89..8d6db36 100644
--- 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