summaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-03-31 22:51:00 +0000
committerBrian Somers <brian@FreeBSD.org>1997-03-31 22:51:00 +0000
commit687d0cdeb381b9003bb907fac08f035be93d1d7f (patch)
treed2968c7df397b9bf04f321ddbd197e802c510015 /usr.bin/tip
parent539f83b7f0f72b184a3c9ad6c4ec9585d36f6392 (diff)
Notes
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/tip/Makefile1
-rw-r--r--usr.bin/tip/tip/hunt.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/Makefile b/usr.bin/tip/tip/Makefile
index 073a0e497c25..ec9aee18ae68 100644
--- a/usr.bin/tip/tip/Makefile
+++ b/usr.bin/tip/tip/Makefile
@@ -14,7 +14,6 @@ LIBACU=${.CURDIR}/../libacu/libacu.a
.endif
PROG= tip
-CFLAGS+=-DUSE_PERROR
DPADD= $(LIBACU)
LDADD= $(LIBACU) -lutil
LINKS= ${BINDIR}/tip
diff --git a/usr.bin/tip/tip/hunt.c b/usr.bin/tip/tip/hunt.c
index 97e3a6aa2655..e99e73ba16c7 100644
--- a/usr.bin/tip/tip/hunt.c
+++ b/usr.bin/tip/tip/hunt.c
@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
+#include <libutil.h>
#include "tipconf.h"
#include "tip.h"
@@ -56,13 +57,17 @@ hunt(name)
{
register char *cp;
sig_t f;
+ int res;
f = signal(SIGALRM, dead);
while (cp = getremote(name)) {
deadfl = 0;
uucplock = rindex(cp, '/')+1;
- if (uu_lock(uucplock) < 0)
+ if ((res = uu_lock(uucplock)) != UU_LOCK_OK) {
+ if (res != UU_LOCK_INUSE)
+ fprintf(stderr, "uu_lock: %s\n", uu_lockerr(res));
continue;
+ }
/*
* Straight through call units, such as the BIZCOMP,
* VADIC and the DF, must indicate they're hardwired in