diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-02-20 07:28:50 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-02-20 07:28:50 +0000 |
| commit | d371a23e0b9584b98fc758c0b7b9716e248215f0 (patch) | |
| tree | d5a65ca58e1e2af095b1ca5dcacfb4d65aa0de9d | |
| parent | d02327a11821442896420b915eeaec6775ae5570 (diff) | |
Notes
| -rw-r--r-- | sbin/slattach/slattach.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index 76d5b5568bcd..cdc0c01e38e4 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -42,7 +42,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)slattach.c 4.6 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: slattach.c,v 1.29 1997/12/21 13:42:27 eivind Exp $"; +static char rcsid[] = "$Id: slattach.c,v 1.30 1998/01/25 09:16:55 jb Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -208,13 +208,13 @@ main(int argc, char **argv) slip_discipline(); /* switch to slip line discipline */ /* upon INT log a timestamp and exit. */ - if ((long)signal(SIGINT,sigint_handler) < 0) + if (signal(SIGINT,sigint_handler) == SIG_ERR) syslog(LOG_NOTICE,"cannot install SIGINT handler: %m"); /* upon TERM log a timestamp and exit. */ - if ((long)signal(SIGTERM,sigterm_handler) < 0) + if (signal(SIGTERM,sigterm_handler) == SIG_ERR) syslog(LOG_NOTICE,"cannot install SIGTERM handler: %m"); /* upon HUP redial and reconnect. */ - if ((long)signal(SIGHUP,sighup_handler) < 0) + if (signal(SIGHUP,sighup_handler) == SIG_ERR) syslog(LOG_NOTICE,"cannot install SIGHUP handler: %m"); if (redial_on_startup) @@ -272,7 +272,7 @@ void acquire_line() fclose(pidfile); } - if ((long)signal(SIGHUP,sighup_handler) < 0) /* Re-enable HUP signal */ + if (signal(SIGHUP,sighup_handler) == SIG_ERR) /* Re-enable HUP signal */ syslog(LOG_NOTICE,"cannot install SIGHUP handler: %m"); if (uucp_lock) { |
