]> err.no Git - util-linux/commit
libuuid, uuidd: Avoid infinite loop while reading from the socket fd
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jul 2009 02:49:49 +0000 (22:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jul 2009 03:26:09 +0000 (23:26 -0400)
commit3b90c50066969cfa40a392d0290cb8d762351f65
tree0315ca6358bf05dbd1c31424d2f104a468585af4
parentfdb3e93ce907cce3a2133f22bb780ecb317af76a
libuuid, uuidd: Avoid infinite loop while reading from the socket fd

If for some reason the uuidd daemon or the process calling uuidd
exited unexpectely, the read_all() function would end up looping
forever, either in uuidd or in libuuid.  Fix this terminating the loop
if no data can be read after five tries to read from the file
descriptor.

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