Use new _PATH_LOCK
Fix bug: pid was not assigned
This commit is contained in:
parent
c0810b3cbc
commit
25883984a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10927
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user