OSDN Git Service

libuuid: When starting uuidd, use waitpid() to reap the zombie process
authorTheodore Ts'o <tytso@mit.edu>
Mon, 17 Dec 2007 20:16:44 +0000 (15:16 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Dec 2007 20:16:44 +0000 (15:16 -0500)
commit9d8c203a462ee18c1fd09a68cfe0e2ec7d8288da
tree5e98d4590971b6c347dfbe9b32beccc9c115285d
parent2165003bd5d3dc25a623417add49f2c38360d2b7
libuuid: When starting uuidd, use waitpid() to reap the zombie process

The uuidd process will fork and let the parent process exit to create
the daemon.  So use waitpid to reap the zombie, as well as using it to
time when it is safe to try to connect to the daemon.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/uuid/gen_uuid.c