Re: [PATCH v10 1/2] cmdline: handle EOF in cmdline_poll

2023-01-30 Thread Stephen Hemminger
On Mon, 30 Jan 2023 22:12:42 + Ferruh Yigit wrote: > On 1/30/2023 8:09 PM, Stephen Hemminger wrote: > > If end of file is reached on input, then cmdline_read_char() > > will return 0. The problem is that cmdline_poll() was not checking > > for this and would continue and not return the status

Re: [PATCH v10 1/2] cmdline: handle EOF in cmdline_poll

2023-01-30 Thread Ferruh Yigit
On 1/30/2023 8:09 PM, Stephen Hemminger wrote: > If end of file is reached on input, then cmdline_read_char() > will return 0. The problem is that cmdline_poll() was not checking > for this and would continue and not return the status. > > Fixes: 9251cd97a6be ("cmdline: add internal wrappers for c

[PATCH v10 1/2] cmdline: handle EOF in cmdline_poll

2023-01-30 Thread Stephen Hemminger
If end of file is reached on input, then cmdline_read_char() will return 0. The problem is that cmdline_poll() was not checking for this and would continue and not return the status. Fixes: 9251cd97a6be ("cmdline: add internal wrappers for character input") Signed-off-by: Stephen Hemminger --- l