]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Tidy up signal handling.
authorBrian Somers <brian@FreeBSD.org>
Wed, 19 Feb 1997 01:14:41 +0000 (01:14 +0000)
committerBrian Somers <brian@FreeBSD.org>
Wed, 19 Feb 1997 01:14:41 +0000 (01:14 +0000)
commit52cc0880db973dfc6b13a1ea982239e7a023f964
tree8161cb2acbf7411d686ea3f206c18cec51516bac
parent4d04269a37afa7494d956c4511d672b2f8fcbaec
Tidy up signal handling.
All signal() calls have been changed to pending_signal() calls.
pending_signal() is defined in the new sig.c file.  It remembers
the handler and traps the signal with a function that will remember
the signal.

main.c now calls handle_signals() to actually call the required
handlers (if the above handler was called).

If this doesn't close PR2662 (was PR2347), I'll cry.

Joerg, I think this should go into 2.2, but I havn't done anything
about it because I'm bound to botch it with the new sig.[ch] files.

I've just "cvs add"'d sig.[ch] so far.... can you update to 2.2 and
tell me what you did ?  Thanks.
usr.sbin/ppp/Makefile
usr.sbin/ppp/chat.c
usr.sbin/ppp/main.c
usr.sbin/ppp/sig.c [new file with mode: 0644]
usr.sbin/ppp/sig.h [new file with mode: 0644]
usr.sbin/ppp/timeout.h
usr.sbin/ppp/timer.c