diff options
author | joerg <joerg@FreeBSD.org> | 1997-11-07 13:18:50 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-11-07 13:18:50 +0000 |
commit | 557fc1ddef731a44f30b53b49fa61c476e25ebad (patch) | |
tree | 5f906a9077798c3d91a4412e4e14a14cc3f69ed9 /usr.sbin/lpr/lpd | |
parent | 81bbaff8315ace12a4d4a1da619230f8c0d18bcc (diff) | |
download | FreeBSD-src-557fc1ddef731a44f30b53b49fa61c476e25ebad.zip FreeBSD-src-557fc1ddef731a44f30b53b49fa61c476e25ebad.tar.gz |
Argl! Who's got the pointy hat these days? Hand it over to me, ASAP!
When setting an alarm that didn't trigger, i gotta clear it again
before going on. Hmpf!
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 8a2835b..cff1d9f 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1474,6 +1474,7 @@ opennet(cp) savealrm = signal(SIGALRM, alarmhandler); alarm(CT); pfd = getport(cp, port); + alarm(0); (void)signal(SIGALRM, savealrm); if (pfd < 0 && errno == ECONNREFUSED) resp = 1; @@ -1541,6 +1542,7 @@ openrem() savealrm = signal(SIGALRM, alarmhandler); alarm(CT); pfd = getport(RM, 0); + alarm(0); (void)signal(SIGALRM, savealrm); if (pfd >= 0) { (void) snprintf(line, sizeof(line), "\2%s\n", RP); |