From owner-cvs-usrsbin Tue Feb 18 17:14:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA18103 for cvs-usrsbin-outgoing; Tue, 18 Feb 1997 17:14:47 -0800 (PST) Received: (from brian@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA18095; Tue, 18 Feb 1997 17:14:44 -0800 (PST) Date: Tue, 18 Feb 1997 17:14:44 -0800 (PST) From: Brian Somers Message-Id: <199702190114.RAA18095@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ppp sig.c sig.h Makefile chat.c main.c timeout.h timer.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 97/02/18 17:14:44 Modified: usr.sbin/ppp Makefile chat.c main.c timeout.h timer.c Added: usr.sbin/ppp sig.c sig.h Log: 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. Revision Changes Path 1.13 +1 -1 src/usr.sbin/ppp/Makefile 1.15 +6 -6 src/usr.sbin/ppp/chat.c 1.31 +18 -40 src/usr.sbin/ppp/main.c 1.8 +0 -1 src/usr.sbin/ppp/timeout.h 1.8 +3 -26 src/usr.sbin/ppp/timer.c