[Bug 3547] shell read is maybe too safe

Rich Felker dalias at aerifal.cx
Mon May 9 18:38:37 UTC 2011


On Mon, May 09, 2011 at 01:20:16AM +0200, Denys Vlasenko wrote:
> Changing signal handling to a different scheme,
> where they are caught and recorded, will somewhat help,
> because now poll/read syscalls will be interruptible,
> but this creates another problem: many other sycalls
> may start failing with EINTR too, and we don't check

Nonsense. Install the signal handler with SA_RESTART. select and poll
will return on receiving a signal anyway, but other syscalls like read
and write will restart.

Rich


More information about the busybox mailing list