mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
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!
This commit is contained in:
parent
eef2db22e1
commit
6d0727f460
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31020
@ -242,6 +242,7 @@ displayq(format)
|
||||
savealrm = signal(SIGALRM, alarmhandler);
|
||||
alarm(CT);
|
||||
fd = getport(RM, 0);
|
||||
alarm(0);
|
||||
(void)signal(SIGALRM, savealrm);
|
||||
if (fd < 0) {
|
||||
if (from != host)
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user