From: David Goulet Date: Mon, 20 Aug 2012 19:42:10 +0000 (-0400) Subject: Move code out of main.c and fix some issues X-Git-Tag: v2.1.0-rc2~11 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=2f77fc4b3720dc8f75847130498c2d4aad7c03ec;hp=2f77fc4b3720dc8f75847130498c2d4aad7c03ec Move code out of main.c and fix some issues This is a "code location refactoring". The file main.c was getting a bit too HUGE so this commit splits the command subsystem of the session daemon into cmd.c/.h and all helper functions used. This commit also fixes missing rcu read side lock and the consumer output hashtable memory leak on destroy. Minor changes were made to functions call to pass needed variables from the main.c to the command subsystem. The behavior was not changed nor altered in any way. Signed-off-by: David Goulet ---