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

View file

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