HomeFreeBSD

lockf: allow locking file descriptors

Description

lockf: allow locking file descriptors

This is most useful inside a shell script, allowing one to lock just
portions of a script rather than having to wrap the entire script in a
lock.

PR: 262738
Reviewed by: 0mp, allanjude (both previous versions)
Co-authored-by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: Klara, Inc.

(cherry picked from commit 09a7fe0a5523d53ff6c26ddef9a947f293e18c22)

Details

Provenance
kevansAuthored on Nov 22 2023, 7:46 AM
Parents
rGfbd1d0bdff1d: lockf: add some tests
Branches
Unknown
Tags
Unknown