diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2008-03-26 15:23:12 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2008-03-26 15:23:12 +0000 |
| commit | dfdcada31e7924c832024404c6a09a2db04e397e (patch) | |
| tree | eaf6a0fa52bc76253126814ddab4cbf78722a8a5 /lib/libc/gen/lockf.c | |
| parent | ebfbcd612ac0c9fb83ba3b0c57ef40124cdd8187 (diff) | |
Notes
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 c448f1804072..e79e162f15f8 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); |
