From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 26 Apr 2011 08:57:57 -0400 To: 9fans@9fans.net Message-ID: <0239ab9a36c34faaba2f5c364b24853a@coraid.com> In-Reply-To: <201104261102.12028.dexen.devries@gmail.com> References: <2afb8aa9b8f443793d7bf20463b78c1c@ladd.quanstro.net> <84c61fe2a739f0786622f2e27e7a1b82@ladd.quanstro.net> <201104261102.12028.dexen.devries@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Different results for the same rc script when using listen1 Topicbox-Message-UUID: d5dc76a2-ead6-11e9-9d60-3106f5b1d025 > > i take it back. i'd forgotten how quirky unix is these days. > > here's the solution. not rc's fault. recompile lib9 and listen1: > > > > diff -r 5caa04977471 src/lib9/rfork.c > > (...) > > > back in 13/05/2009 00:57 i've submitted a different patch for that > (mail with subject ``[p9p] Bug in signal handling''). it seems simplier; any > chances it gets the job done an easier way? > > here again, with whitespace cleanup: > > diff -r bde374c81d7e src/lib9/notify.c > --- a/src/lib9/notify.c Tue Jan 25 12:13:44 2011 +0100 > +++ b/src/lib9/notify.c Tue Apr 26 11:01:25 2011 +0200 > @@ -265,7 +265,8 @@ > * Or maybe someone has already called notifyon/notifyoff. > * Leave it alone. > */ > - if(handler(sig->sig) != SIG_DFL) > + if((handler(sig->sig) != SIG_DFL) > + && handler(sig->sig) != SIG_IGN) > continue; > notifyseton(sig->sig, !(sig->flags&NoNotify)); > } that's not the same bug. noteinit() isn't going to be called by rc through Trapinit() again after the exec. - erik