Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2007 10:38:05 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libutil pidfile.3 pidfile.c
Message-ID:  <200710121038.l9CAc5eL018582@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2007-10-12 10:38:05 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          pidfile.3 pidfile.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710121038.l9CAc5eL018582>