Serious problem with mount(8)

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Thu, 17 May 2007 18:30:57 -0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I really don't know why I didn't notice this before, but when mount was
converted to use the pidfile(3) API three months ago, the behavior of
mount(8) changed with regard to restarting mountd.  A pidfile client
cannot use pidfile_open(3) as this will truncate the pidfile.  The
result is that mount reads in a PID of 0, and when it tries to send a
SIGHUP to this PID, it kills itself.  Consequently, this is breaking the
ports Tinderbox.

I suppose we could revert to the previous behavior, but use flopen() to
test if the file is actually locked.  Maybe something like this:

http://www.marcuscom.com/downloads/mount.c.diff

Joe

- --
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome_at_FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGTJypb2iPiv4Uz4cRAgFOAKClPEvErtJD6RSR5hCgX9KVXFXGbwCdHXjO
XYU6DhuE9fUM485zKhq52JM=
=u1WR
-----END PGP SIGNATURE-----
Received on Thu May 17 2007 - 16:30:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC