diff options
author | dd <dd@FreeBSD.org> | 2001-04-08 19:11:25 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-04-08 19:11:25 +0000 |
commit | 494867e77f0e87497e54df1a9fb5510da9b80f58 (patch) | |
tree | 687e94bc546b7b126389a741a54960ace23ca1c1 /lib/libc/sys/fcntl.2 | |
parent | a5c0f5b9631c71adea1e96a01e419fb2929e99cd (diff) | |
download | FreeBSD-src-494867e77f0e87497e54df1a9fb5510da9b80f58.zip FreeBSD-src-494867e77f0e87497e54df1a9fb5510da9b80f58.tar.gz |
Mention that locks are inherited across an exec.
PR: 24802
Submitted by: Kenneth Ingham <ingham@i-pi.com>
Diffstat (limited to 'lib/libc/sys/fcntl.2')
-rw-r--r-- | lib/libc/sys/fcntl.2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 0b2ec89..b2911e5 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -333,6 +333,12 @@ locks may be safely used concurrently. All locks associated with a file for a given process are removed when the process terminates. .Pp +All locks obtained before a call to +.Xr execve 2 +remain in effect until the new program releases them. +If the new program does not know about the locks, they will not be +released until the program exits. +.Pp A potential for deadlock occurs if a process controlling a locked region is put to sleep by attempting to lock the locked region of another process. This implementation detects that sleeping until a locked region is unlocked |