Whamcloud - gitweb
uuidd: Avoid race conditions to that only one uuidd is started
authorTheodore Ts'o <tytso@mit.edu>
Tue, 25 Dec 2007 19:19:15 +0000 (14:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Dec 2007 19:19:15 +0000 (14:19 -0500)
commit113d636a2bfe984fc1f6cae42fac2974d2a3f432
tree9a2de203a49526fddc720f6a6054c16d93c57786
parentf79fb4976cd1e4775a4959be3ddda557204939e0
uuidd: Avoid race conditions to that only one uuidd is started

Use an improved locking protocol based on the pid file to assure that
only one uuidd is started.  Apparently the kernel does not prevent
multiple processes from racing to bind to a Unix domain socket.

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