Notify FIFO readers on exit (if any) (#581)

This allows to close preview windows opened just before exiting nnn.
This commit is contained in:
lvgx 2020-05-19 18:59:13 +02:00 committed by GitHub
parent b465bf9427
commit 0c916ae7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -7291,6 +7291,7 @@ int main(int argc, char *argv[])
#endif
#ifndef NOFIFO
notify_fifo();
if (fifofd != -1)
close(fifofd);
#endif