From 3a3923f0906b017e088a7d775c28d27cebbf9f0d Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 10 Aug 1995 06:51:42 +0000 Subject: [PATCH 1/1] Use SIGNAL not signal because the former doesn't reset the handler when the signal is caught. --- pppd/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pppd/main.c b/pppd/main.c index 2c7d526..632e179 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.25 1995/07/11 06:40:58 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.26 1995/08/10 06:51:42 paulus Exp $"; #endif #include @@ -252,8 +252,8 @@ main(argc, argv) SIGNAL(SIGTERM, term); /* Terminate */ SIGNAL(SIGCHLD, chld); - signal(SIGUSR1, toggle_debug); /* Toggle debug flag */ - signal(SIGUSR2, open_ccp); /* Reopen CCP */ + SIGNAL(SIGUSR1, toggle_debug); /* Toggle debug flag */ + SIGNAL(SIGUSR2, open_ccp); /* Reopen CCP */ /* * Lock the device if we've been asked to. -- 2.39.2