]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: avoid data race
authorEric Blake <eblake@redhat.com>
Wed, 15 Dec 2010 17:23:32 +0000 (10:23 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 20 Dec 2010 17:29:50 +0000 (10:29 -0700)
commit630fe36f06658f558ab2c3e6506c1db73a0179ae
tree66fc0b22cafc6b5ea21e3ea1d81580066d15e346
parentf0b834e74fbe6d40e0b982c03368afd42907ba50
tests: avoid data race

I got some spurious failures when commandhelper won the race and
ran to the point of parent detection prior to the intermediate
daemonizing process getting a chance to exit.  This fixes it.

* tests/commandhelper.c (main): Checking for re-parenting to
init(1) is racy; instead check that we belong to a new session.
tests/commandhelper.c