[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message when writing to a FIFO
From: |
Benno Schulenberg |
Subject: |
Re: Error message when writing to a FIFO |
Date: |
Tue, 28 Sep 2021 10:17:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Op 27-09-2021 om 19:36 schreef André Kugland:
>> Just saw your fix. I believe it will still trigger the spurious message when
>> NANOTINY is defined,
A tiny nano refuses to open a fifo; it will open a blank buffer instead.
> * it also wouldn't flush the stdio buffer
The flush of the fifo will happen for the fclose() five lines down. The
earlier fflush() is needed only when wanting to call fsync() on the file.
> Also, the content of st would be undefined if the file doesn't exist
Good catch. Thanks. Amended in git:
https://git.savannah.gnu.org/cgit/nano.git/commit/?id=26c0a796
Benno
OpenPGP_signature
Description: OpenPGP digital signature