Article View: net.bugs.4bsd
Article #1699tip fails to cycle past a "dead" device
From: Steve Grandi
Date: Thu, 16 Oct 1986 01:43
Date: Thu, 16 Oct 1986 01:43
42 lines
1733 bytes
1733 bytes
Subject: tip fails to cycle past a "dead" device.
Index: /usr/src/usr.bin/tip/hunt.c 4.3BSD
Description:
The following bug report and fix are brought to you by Richard Wolff.
tip fails to cycle through multiple modem devices (dv entry in
/etc/remote) if a particular device is found to be "dead". Cycling works
properly only when a device is "busy".
Repeat-By:
Have multiple entries for dv in /etc/remote. Arrange for the first
device in the list to be "dead" (powering-off the modem works for me). Try
to tip and notice the "all ports busy" message.
Fix:
*** hunt.c.ORIG Mon Dec 9 19:42:14 1985
--- hunt.c Thu Aug 21 09:34:58 1986
***************
*** 30,36 ****
int (*f)();
f = signal(SIGALRM, dead);
- deadfl = 0;
while (cp = getremote(name)) {
uucplock = rindex(cp, '/')+1;
if (mlock(uucplock) < 0) {
--- 30,35 ----
***************
*** 46,51 ****
--- 45,51 ----
*/
if (!HW)
break;
+ deadfl = 0;
if (setjmp(deadline) == 0) {
alarm(10);
FD = open(cp, O_RDWR);
--
Steve Grandi, National Optical Astronomy Observatories, Tucson, AZ, 602-325-9228
{arizona,decvax,hao,ihnp4,seismo}!noao!grandi grandi%draco@Hamlet.Caltech.Edu
Technical Details
Message-ID:
<503@carina.noao.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!princeton!astrovax!noao!grandiShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!princeton!astrovax!noao!grandi From: grandi@noao.UUCP (Steve Grandi) Newsgroups: net.bugs.4bsd Subject: tip fails to cycle past a "dead" device Message-ID: <503@carina.noao.UUCP> Date: Wed, 15-Oct-86 21:43:44 EDT Article-I.D.: carina.503 Posted: Wed Oct 15 21:43:44 1986 Date-Received: Thu, 16-Oct-86 18:52:29 EDT Organization: Natl. Optical Astronomy Observatories, Tucson, AZ USA Lines: 42