tests: heartbeat-timeout: simplify and avoid possible race
commitcf5ba246ac045101a591bbcba57027e7fc5f492b
authorEric Wong <normalperson@yhbt.net>
Mon, 9 Nov 2009 21:58:36 +0000 (9 13:58 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 10 Nov 2009 00:10:38 +0000 (9 16:10 -0800)
tree0541909c8d7f5fe3f5260002ff141cb2c4131fd1
parentf8c283b855eadc18c8f531a8bb2363a4050c9436
tests: heartbeat-timeout: simplify and avoid possible race

It seems possible to have a race condition here with
the FIFO being overloaded for both start detection
and blocking.  Since SIGSTOP is unavoidable, just use
that instead and sleep immediately afterwards in case
SIGSTOP is not processed in time.
t/heartbeat-timeout.ru
t/t0004-heartbeat-timeout.sh