Fix: lttng_rotate_session does not handle socket close
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 03:38:43 +0000 (23:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 03:40:54 +0000 (23:40 -0400)
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 <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025833 seconds and 4 git commands to generate.