From c0ebfd380a70f345655263dc10b1af0833613208 Mon Sep 17 00:00:00 2001 From: "Alexandr D. Kanevskiy" Date: Mon, 12 Apr 2004 05:02:00 +0000 Subject: [PATCH] fix random signals blocking in handle_events() --- pppd/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pppd/main.c b/pppd/main.c index 0be7998..dddcfe4 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -40,7 +40,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: main.c,v 1.134 2004/04/12 04:53:00 kad Exp $" +#define RCSID "$Id: main.c,v 1.135 2004/04/12 05:02:00 kad Exp $" #include #include @@ -650,6 +650,13 @@ handle_events() struct timeval timo; sigset_t mask; + sigemptyset(&mask); + sigaddset(&mask, SIGHUP); + sigaddset(&mask, SIGINT); + sigaddset(&mask, SIGTERM); + sigaddset(&mask, SIGCHLD); + sigaddset(&mask, SIGUSR2); + kill_link = open_ccp_flag = 0; if (sigsetjmp(sigjmp, 1) == 0) { sigprocmask(SIG_BLOCK, &mask, NULL); -- 2.39.2