[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] NBD, DISCARD/TRIM



On 29 Mar 2013, at 17:32, Wouter Verhelst wrote:

> 
> Actually, I am eating SIGCHLD; nbd-client.c, line 607. I suppose we
> can't deal with this any other way?

For this particular case, can't you simply set the signal mask to 'ignore'?

However, if you ever want to be able to receive signals and process them
(e.g. to dump some stats) you are going to have to deal with ERESTARTSYS
or EAGAIN anyway. I think I'd rather do that and avoid the fragility.

-- 
Alex Bligh







Reply to: