On Mon, Oct 14, 2019 at 10:42:26PM +0800, Paul Wise wrote: > Any idea why something similar doesn't also happen in the loop above, > where getline would return undef on error, terminating the loop?
getline() has a different interface and restarts interrupted read(2) calls internally. It's like <> vs. sysread(). -- Niko

