cvs commit: src/lib/libutil pidfile.3 pidfile.c

Konstantin Belousov kib at
Fri Oct 12 03:38:05 PDT 2007

kib         2007-10-12 10:38:05 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          pidfile.3 pidfile.c 
  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
  Revision  Changes    Path
  1.6       +4 -0      src/lib/libutil/pidfile.3
  1.8       +15 -1     src/lib/libutil/pidfile.c

More information about the cvs-src mailing list