From: Pierre-Marc Fournier Date: Sat, 27 Feb 2010 17:09:18 +0000 (-0500) Subject: ust_fork(): reset buffers_to_export to 0 when forking X-Git-Tag: v0.3~13 X-Git-Url: http://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=cedc01558f93f0d28c027a4d99bbe3e364ca4b97 ust_fork(): reset buffers_to_export to 0 when forking Fixes a bug where the child had a non-null initial value for buffers_to_export --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 916b354..220d37f 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1478,6 +1478,7 @@ static void ust_fork(void) list_del(&bc->list); } + buffers_to_export = 0; have_listener = 0; init_socket(); create_listener();