HomeFreeBSD

lockf: minor cosmetic cleanups, no functional change

Description

lockf: minor cosmetic cleanups, no functional change

Switch various flags from int -> bool.

kill(getpid(), foo) and raise(foo) are equivalent in this context, so
switch to the latter as a minor preference for readability.

Use proper signal fences instead of volatile for our SIGALRM handler.

Reviewed by: kib (earlier version), des
Differential Revision: https://reviews.freebsd.org/D51027

Details

Provenance
kevansAuthored on Jun 24 2025, 11:08 PM
Reviewer
kib
Differential Revision
D51027: lockf: minor cosmetic cleanups, no functional change
Parents
rGc82203e65d08: lockf: tests: add tests for the -p and -T features
Branches
Unknown
Tags
Unknown