mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
Mention that locks are inherited across an exec.
PR: 24802 Submitted by: Kenneth Ingham <ingham@i-pi.com>
This commit is contained in:
parent
7401f04659
commit
92020f7a8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75313
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user