Use new _PATH_LOCK

Fix bug: pid was not assigned
This commit is contained in:
Andrey A. Chernov 1995-09-20 13:21:21 +00:00
parent c0810b3cbc
commit 25883984a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10927
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);