IsProcessAlive: retry stat() a few times
authorGuido Trotter <ultrotter@google.com>
Fri, 7 May 2010 08:11:37 +0000 (10:11 +0200)
committerGuido Trotter <ultrotter@google.com>
Mon, 10 May 2010 08:56:26 +0000 (09:56 +0100)
commit5ef5ea453b322430c8ec11ddcfbf129ade840331
tree8846ac67d109e71286cf4d5ca487c8370e55f0f9
parent40bc67e1cbcb66fa82f4c42d5d5d2069e7b6223c
IsProcessAlive: retry stat() a few times

On multiprocessor dom0 stat() on /proc can sometimes return EINVAL.
Before giving up, we try a few times to get a consistent answer.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils.py