From: Mathieu Desnoyers Date: Wed, 25 Jan 2012 14:39:28 +0000 (-0500) Subject: Fix lttng sessiond spawn wait race X-Git-Tag: v2.0-pre19~49 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;ds=inline;h=5a532b6873b6d619381c0188b91e48106e639808;hp=5a532b6873b6d619381c0188b91e48106e639808;p=lttng-tools.git Fix lttng sessiond spawn wait race If the child is scheduled before the parent, using "pause()" in the parent could be executed after the signal has been handled: that's entirely racy. Use a proper signal handler and flag to handle this racelessly. Signed-off-by: Mathieu Desnoyers ---