From: Paul Mackerras Date: Thu, 10 Aug 1995 06:51:42 +0000 (+0000) Subject: Use SIGNAL not signal because the former doesn't reset the handler X-Git-Tag: RELEASE_2_3_6~632 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=3a3923f0906b017e088a7d775c28d27cebbf9f0d Use SIGNAL not signal because the former doesn't reset the handler when the signal is caught. --- 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.