HomeFreeBSD

When pidfile is already locked and has zero length, do not return
rS172577Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

When pidfile is already locked and has zero length, do not return
success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep
up to three times for 5 ms while waiting for pidfile to be written.

mount(8) does the kill(mountpid, SIGHUP). If mountd pidfile is truncated,
that would result in the SIGHUP delivered to the mount' process group
instead of the mountd.

Found and analyzed by: Peter Holm
Tested by: Peter Holm, kris
Reviewed by: pjd
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS172576: Style (whitespace-only) change.
Branches
Unknown
Tags
Unknown

Event Timeline