Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 1997 19:49:29 +0000
From:      Brian Somers <brian@awfulhak.demon.co.uk>
To:        brian@utell.co.uk
Cc:        Bruce Evans <bde@zeta.org.au>, ache@nagual.ru, current@FreeBSD.org
Subject:   Re: ppp 
Message-ID:  <199703111949.TAA06513@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Tue, 11 Mar 1997 15:44:35 GMT." <199703111544.PAA27686@shift.lan.awfulhak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

> This should solve the above.  The process loop will look something like:
> 
> extern int ncaused;  /* The cumulative number of signals caused */
> int sig;
> 
> while (ncaused) {
>     for (sig = 0; sig < __MAXSIG; sig++)
>         if (caused[sig]) {
>             ncaused--;
>             caused[sig]--;
>             (*handler[sig])(sig+1);
>         }
> }
> 
> The actual signal trap would of course increment caused[n] and ncaused.

Hmm, impossible to keep caused[n] and ncaused in sync.
-- 
Brian <brian@awfulhak.demon.co.uk>, <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk/>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703111949.TAA06513>