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 21:51:29 +0000 (17:51 -0400)
commit833984dec970c82384d0f41bab4df5bd5d730f3e
treea5df51332eecd865f816fcc62397546db72e2e97
parentb51ae08035921b63b417f9364081b92d70280e9f
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.026284 seconds and 4 git commands to generate.