Re: [Nbd] NBD Super Size io operations
- To: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] NBD Super Size io operations
- From: Wouter Verhelst <w@...112...>
- Date: Tue, 09 Apr 2013 17:56:46 +0200
- Message-id: <51643A3E.1050409@...112...>
- In-reply-to: <CAECXXi59Zea8BVLER3S9Kf=uJ3pikuUxzO1QG_wQUVQqs6axAg@...18...>
- References: <BAY403-EAS415E8D3A1CC43EB4134B824DADE0@...59...> <CAECXXi5ouWsq09pxTGzDeYP+Q6eLF4+SbBRDKShVcUXm13Oi4g@...18...> <20130401202523.GR14908@...1273...> <20130402140706.GI30504@...855...> <20130403193632.GY30504@...855...> <20130407215919.GB67997@...1273...> <CAECXXi5fiTnfgcHhmW_A84nwXUhvvCX_CZf1QLzydSG09hZ6Pw@...18...> <CAECXXi59Zea8BVLER3S9Kf=uJ3pikuUxzO1QG_wQUVQqs6axAg@...18...>
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: