Fix: Discard disable event command filter payload
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Aug 2015 02:03:29 +0000 (22:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Aug 2015 22:04:12 +0000 (18:04 -0400)
commitabfab6f84484021fbdb4c53618b9bd5aed9a7608
treee31507979a2c2b5a2cc948139c9895e6206b71ad
parent36ad6c25c8b3fa6a9b4ce711ba061b5bdc7f98ee
Fix: Discard disable event command filter payload

liblttng-ctl sends both the filter expression and filter bytecode
whenever lttng_disable_event_ext() is used _or_ when it is used
implicitly by lttng_disable_event() on an Agent domain (Log4j,
JUL or Python).

As of now, the session daemon ignores this filter payload.
However, on some rare occasions (the frequency of which depends
on the system's configuration and load), the second call to
sendmsg() done by liblttng-ctl could block and return an error
when the session daemon closed the socket (EPIPE).

This fix ensures the payload is received and discarded by the
session daemon, which in turn allows the client to handle the
session daemon's reply to the command.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.025926 seconds and 4 git commands to generate.