[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] winio: fix initial state of blocking-io
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] winio: fix initial state of blocking-io |
Date: |
Mon, 6 Nov 2017 20:33:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Op 04-11-17 om 16:16 schreef Lion Yang:
winio.c assumes waiting_mode = TRUE but stdin can be non-blocking when a
program (before nano) turned stdin to non-blocking mode and did not recover it
(or crashed before recovering blocking mode). This commit set stdin blocking
mode in nano.c
Thanks for that. I've added one error check (because we don't want
to try and clear a flag when the first call of fcntl() failed). If
you're okay with it, please add your Sign-off.
Benno
0001-input-ensure-that-standard-input-uses-blocking-mode.patch
Description: Text Data