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

Re: [Nbd] NBD Super Size io operations



On 08-04-13 23:19, Paul Clements wrote:
> If you do something like the following in nbd-client just before the
> call to NBD_DO_IT, does this fix the problem:
> 
> 
> +       sigfillset(&block);
> +       sigdelset(&block, SIGKILL);
> +       sigprocmask(SIG_SETMASK, &block, &old);
>          if (ioctl(nbd, NBD_DO_IT) < 0)

Hmm. I'm not sure if blocking everything except for SIGKILL is the right
thing to do. Shouldn't we at least listen for SIGINT and SIGTERM, too?
And what about SIGPIPE?

-- 
Copyshops should do vouchers. So that next time some bureaucracy
requires you to mail a form in triplicate, you can mail it just once,
add a voucher, and save on postage.



Reply to: