nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking


From: Brand Huntsman
Subject: [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it
Date: Mon, 13 May 2019 23:59:18 -0600

The open() in open_file() blocks if an empty FIFO is opened, causing nano to 
hang. This patch opens the FIFO in non-blocking mode, polls it for data and 
re-opens it in blocking mode if data found. Just start the writing process 
first, and then open nano.

It would also be nice if a "Writing to FIFO..." message was displayed before 
writing to one. It would provide a little feedback as to why nano hangs if the 
FIFO is no longer listening.

Attachment: files-check-for-an-empty-FIFO-before-blocking-on-it.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]