Subject: Re: ^T for fsck
To: Assar Westerlund <firstname.lastname@example.org>
From: Charles M. Hannum <email@example.com>
Date: 03/04/2001 11:17:50
On Sun, Mar 04, 2001 at 03:14:01PM +0100, Assar Westerlund wrote:
> firstname.lastname@example.org (Christos Zoulas) writes:
> > Yes, please be very careful about introducing siginfo to programs.
> > It can interfere with the operation of the program, because system
> > calls (such as write) can be interrupted by it. When siginfo got
> > added to dd, it caused that problem and the write inside bwrite
> > had to be protected against receiving the signal.
> I'm missing something here, isn't it enough to install the signal
> handler with SA_RESTART?
In this specific case, probably. In general, no. SA_RESTART will not
restart a partially completed read(2) or write(2).