On Sun, Jan 22, 2023 at 9:02 AM Sören Tempel <soe...@soeren-tempel.net> wrote:
> While this program works for the input "foo<ctrl-d>" it does (just like
> my original program) also terminate on the input "foo1<ctrl-d>" since
> the buffer is, once again, empty when the EOF is received. However, POSIX
> mandates that read(2) should only return a byte count of zero if "the
> EOF occurred at the beginning of a line" and for the input
> "foo1<ctrl-d>" the EOF does not occur at the beginning of the line but
> OpenBSD read(2) still returns zero.

Isn't that only for read attempts from the background process group?

-- 
Raul

Reply via email to