> > 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