From: Jérémie Galarneau Date: Wed, 10 Apr 2019 03:38:43 +0000 (-0400) Subject: Fix: lttng_rotate_session does not handle socket close X-Git-Tag: v2.12.0-rc1~621 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=1320cab14db79aad4429e9f207ba8fa27b52f498;hp=1320cab14db79aad4429e9f207ba8fa27b52f498;p=lttng-tools.git Fix: lttng_rotate_session does not handle socket close lttng_ctl_ask_sessiond may return 0 if the sessiond process is killed or if its client socket is closed unexpectedly. This causes lttng_rotate_session to assume a rotation command reply has been received, resulting in a NULL pointer dereference later on. Signed-off-by: Jérémie Galarneau ---