Konstantin Belousov fefc6803cf 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
2007-10-12 10:38:05 +00:00
..
2007-09-28 15:31:44 +00:00
2007-09-05 14:27:13 +00:00
2007-09-28 15:31:44 +00:00
2007-09-28 15:31:44 +00:00
2007-09-28 15:31:44 +00:00
2006-06-17 07:25:58 +00:00
2006-01-16 00:28:11 +00:00
2006-10-10 08:15:08 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00