diff options
author | ache <ache@FreeBSD.org> | 1995-09-20 13:21:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-09-20 13:21:21 +0000 |
commit | 22e20af636c3359e6e70ceaec8326f0305a12428 (patch) | |
tree | b5bba6f12adf25923160994076d5e8cdc9c9b946 /usr.bin/tip | |
parent | 02773fa0296ed51b76e158c5712558724e6567d7 (diff) | |
download | FreeBSD-src-22e20af636c3359e6e70ceaec8326f0305a12428.zip FreeBSD-src-22e20af636c3359e6e70ceaec8326f0305a12428.tar.gz |
Use new _PATH_LOCK
Fix bug: pid was not assigned
Diffstat (limited to 'usr.bin/tip')
-rw-r--r-- | usr.bin/tip/tip/pathnames.h | 2 | ||||
-rw-r--r-- | usr.bin/tip/tip/uucplock.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/pathnames.h b/usr.bin/tip/tip/pathnames.h index ef4197c..abf1f33 100644 --- a/usr.bin/tip/tip/pathnames.h +++ b/usr.bin/tip/tip/pathnames.h @@ -47,7 +47,7 @@ /* #define _PATH_LOCKDIRNAME "/etc/locks/LCK..%s" */ /* #define _PATH_LOCKDIRNAME "/usr/spool/locks/LCK..%s" */ /* #define _PATH_LOCKDIRNAME "/usr/spool/uucp/LCK/LCK..%s" */ -#define _PATH_LOCKDIRNAME "/var/spool/lock/LCK..%s" +#define _PATH_LOCKDIRNAME _PATH_LOCK "LCK..%s" /* Specify location for system wide databases diff --git a/usr.bin/tip/tip/uucplock.c b/usr.bin/tip/tip/uucplock.c index a61e124..5c78bd4 100644 --- a/usr.bin/tip/tip/uucplock.c +++ b/usr.bin/tip/tip/uucplock.c @@ -71,7 +71,7 @@ uu_lock (char *ttyname) perror("lock open"); return(-1); } - if (get_pid (fd) == -1) { + if ((pid = get_pid (fd)) == -1) { (void)close(fd); perror("lock read"); return(-1); |