diff options
Diffstat (limited to 'lib/libc/gen/lockf.c')
-rw-r--r-- | lib/libc/gen/lockf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/lockf.c b/lib/libc/gen/lockf.c index c448f18..e79e162 100644 --- a/lib/libc/gen/lockf.c +++ b/lib/libc/gen/lockf.c @@ -74,7 +74,7 @@ lockf(filedes, function, size) fl.l_type = F_WRLCK; if (_fcntl(filedes, F_GETLK, &fl) == -1) return (-1); - if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) + if (fl.l_type == F_UNLCK || (fl.l_sysid == 0 && fl.l_pid == getpid())) return (0); errno = EAGAIN; return (-1); |