Whamcloud - gitweb
uuidd: Fix pid file so it has the correct pid number
authorTheodore Ts'o <tytso@mit.edu>
Sat, 16 Feb 2008 02:24:30 +0000 (21:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 Feb 2008 22:33:48 +0000 (17:33 -0500)
commitcfa30fd554a5ec905ef1e4e3f2b1f8ba9ba8b7e5
tree48e2751079a35ff264006bdb088b9457f83e61a6
parente70f32b79d29e287f8347c5d41c6716f094cc654
uuidd: Fix pid file so it has the correct pid number

The pid file was getting created before the fork(), so it had the
incorrect pid number.  No one noticed for a while, since "uuidd -k"
will kill the daemon and it has enough automatic convenience functions
that it's usually not necessary to refer to the pid file except as a
convenient place for uuidd to lock against multiple instances of the
daemon starting up.

Addresses-Sourceforge-Bug: #1893244

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/uuidd.c