Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 1997 12:19:31 +0300 (MSK)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>
To:        brian@freebsd.org, FreeBSD-current <current@freebsd.org>, brian@awfulhak.demon.co.uk
Subject:   ppp & signals pending
Message-ID:  <Pine.BSF.3.95q.970311115705.561A-100000@nagual.ru>

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

Brian, here some thoughts about signals pending in ppp and possible
restoring your sig.c functionality:

All signals separated by following categories:

1) Fatal signals which can't be pended (they was pended in old version
which cause dead loop).

2) SIGALRM can be pended with great care, there is too many functions
(lqr, fsm, ...) which assume that they called via regular intervals (f.e. 
"... send LQR every %d.%d secs"). Time difference between pended SIGALRM
and not pended variant must be not greater then minimal accuracy expected. 
This things are relatively hard to control and measure, that is why I
prefer not pend SIGALRM at all and remove sig.c code instead of fixing it,
but if you can show that needed accuracy is reached, you can restore
pending of SIGALRM back.

3) Other signals can be pended safely (including kill signals), but only
for main loop, not for execv (they was pended for execv in old variant,
also it looks like cosmetique thing with current implementation).

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970311115705.561A-100000>