From 1070b5bc92ffb84515ff7ccbbc17c9d502c2c2ae Mon Sep 17 00:00:00 2001 From: Jim Bloom Date: Thu, 10 Oct 1985 19:42:44 -0800 Subject: [PATCH] still more fixes from rick@seismo SCCS-vsn: usr.bin/uucp/libacu/vad.c 4.2 --- usr/src/usr.bin/uucp/libacu/vad.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/usr/src/usr.bin/uucp/libacu/vad.c b/usr/src/usr.bin/uucp/libacu/vad.c index 5879c7a6ca..84896704c0 100644 --- a/usr/src/usr.bin/uucp/libacu/vad.c +++ b/usr/src/usr.bin/uucp/libacu/vad.c @@ -1,5 +1,5 @@ #ifndef lint -static char sccsid[] = "@(#)vad.c 4.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)vad.c 4.2 (Berkeley) %G%"; #endif #include "../condevs.h" @@ -67,16 +67,18 @@ struct Devices *dev; DEBUG(4, "%s\n", telno); for(i = 0; i < 5; ++i) { /* make 5 tries */ /* wake up Vadic */ - write(dh, "\005\r", 2); + write(dh, "\005", 1); + sleep(1); + write(dh, "\r", 1); DEBUG(4, "wanted * ", CNULL); - ok = expect("*", dh); + ok = expect("*~5", dh); DEBUG(4, "got %s\n", ok ? "?" : "that"); if (ok != 0) continue; write(dh, "D\r", 2); /* "D" (enter number) command */ DEBUG(4, "wanted NUMBER?\\r\\n ", CNULL); - ok = expect("NUMBER?\r\n", dh); + ok = expect("NUMBER?\r\n~5", dh); DEBUG(4, "got %s\n", ok ? "?" : "that"); if (ok != 0) continue; @@ -119,8 +121,8 @@ struct Devices *dev; return dh; } -vadcls(fd) { - +vadcls(fd) +{ if (fd > 0) { close(fd); sleep(5); -- 2.20.1