From: Mathieu Desnoyers Date: Wed, 19 Nov 2014 21:40:25 +0000 (+0100) Subject: Fix: tests: don't use pidof to wait for test apps X-Git-Tag: v2.6.0~14 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=ebe03c5debc30d8bafc84cc745d486e3937d1422;hp=ebe03c5debc30d8bafc84cc745d486e3937d1422;p=lttng-tools.git Fix: tests: don't use pidof to wait for test apps Use the bash shell "wait" to wait for all background tasks rather than the racy "pidof". Indeed, it's possible that applications have been forked, but not executed yet, when pidof is done, which would therefore miss applications. Using "wait" from the shell solves this. If we want to be really strict, we should have sessiond, consumerd, and relayd export a file containing their own PID, and wait for this instead of using pidof. But this will be for another fix. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---