From: Jérémie Galarneau Date: Wed, 5 Aug 2015 18:57:36 +0000 (-0400) Subject: Send data pending status as part of payload instead of an invalid error X-Git-Tag: v2.8.0-rc1~521 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=f6151c55e2af06fe2204bcab62cc19e33964e5ce;hp=f6151c55e2af06fe2204bcab62cc19e33964e5ce Send data pending status as part of payload instead of an invalid error This ensures that the session daemon's logs don't contain false positives every time a data pending command is replied-to. The use of invalid error codes 0 and 1 causes the log to contain misleading entries of the form: Sending response (size: 16, retcode: Unknown error code (0)) [...] This commit also proves that it is possible, contrary to what the previous comment indicated, to send a boolean value over a socket without using undocumented error codes. Signed-off-by: Jérémie Galarneau ---