From 6e69b2a3e9a34411460d33a432a805b3eb1924d1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 4 Sep 2001 23:36:00 +0000 Subject: Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts. --- usr.sbin/sliplogin/sliplogin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/sliplogin/sliplogin.c') diff --git a/usr.sbin/sliplogin/sliplogin.c b/usr.sbin/sliplogin/sliplogin.c index 69af6fbf095..2173f916c87 100644 --- a/usr.sbin/sliplogin/sliplogin.c +++ b/usr.sbin/sliplogin/sliplogin.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)sliplogin.c 5.6 (Berkeley) 3/2/91";*/ -static char rcsid[] = "$Id: sliplogin.c,v 1.14 2001/07/27 20:34:36 pvalchev Exp $"; +static char rcsid[] = "$Id: sliplogin.c,v 1.15 2001/09/04 23:35:59 millert Exp $"; #endif /* not lint */ /* @@ -217,6 +217,7 @@ main(argc, argv) struct sgttyb tty, otty; #endif char logincmd[2*BUFSIZ+32]; + sigset_t emptyset; extern uid_t getuid(); environ = restricted_environ; /* minimal protection for system() */ @@ -378,8 +379,9 @@ main(argc, argv) /* twiddle thumbs until we get a signal; allow user to kill */ seteuid(uid); + sigemptyset(&emptyset); while (1) - sigpause(0); + sigsuspend(&emptyset); /* NOTREACHED */ } -- cgit v1.2.3