* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>
#include <limits.h>
#include <errno.h>
+#include <string.h>
#include <lttng/health-internal.h>
#include <bin/lttng-sessiond/health-sessiond.h>
if (ret) {
goto error;
}
- /* Connect to the sesssion daemon */
+ /* Connect to component */
sock = lttcomm_connect_unix_sock(health->health_sock_path);
if (sock < 0) {
if (tracing_group) {
goto error;
}
+ memset(&msg, 0, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));