Skip to content
Snippets Groups Projects
Commit 4ad7b057 authored by Simon McVittie's avatar Simon McVittie
Browse files

bwrap-lock: Add support for OFD locks


These more modern locks, introduced in Linux 3.15 and not yet included
in POSIX, propagate across fork(), dup(), fd-passing etc. the way you'd
expect: as long as at least one copy of the inherited or fd-passed file
descriptor remains open, the lock remains held. This allows us to
pass a lock fd to a child process across bwrap's fork-and-exec the way
we were already trying to, and have it actually work.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 9fde82f6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment