diff options
author | brian <brian@FreeBSD.org> | 2001-09-13 10:03:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-09-13 10:03:30 +0000 |
commit | 5903e1d51b427659e37c7d4e10c090e5783f52da (patch) | |
tree | dc6e0e118ae591ae26cd8380b18a96616d627202 /usr.sbin/ppp/lcp.c | |
parent | a03bd6b238cbd0335c27de1574349d1f5ba948c0 (diff) | |
download | FreeBSD-src-5903e1d51b427659e37c7d4e10c090e5783f52da.zip FreeBSD-src-5903e1d51b427659e37c7d4e10c090e5783f52da.tar.gz |
sigpause() -> sigsuspend()
sigblock() -> sigprocmask()
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r-- | usr.sbin/ppp/lcp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index 09d7ab0..4b9dfd9 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -968,13 +968,16 @@ LcpDecodeConfig(struct fsm *fp, u_char *cp, int plen, int mode_type, if (lcp->want_magic) { /* Validate magic number */ if (magic == lcp->want_magic) { + sigset_t emptyset; + log_Printf(LogLCP, "Magic is same (%08lx) - %d times\n", (u_long)magic, ++lcp->LcpFailedMagic); lcp->want_magic = GenerateMagic(); memcpy(dec->nakend, cp, 6); dec->nakend += 6; ualarm(TICKUNIT * (4 + 4 * lcp->LcpFailedMagic), 0); - sigpause(0); + sigemptyset(&emptyset); + sigsuspend(&emptyset); } else { lcp->his_magic = magic; memcpy(dec->ackend, cp, length); |