Fix: handle the registration done command for JUL
[lttng-tools.git] / src / bin / lttng-sessiond / jul.c
index 3c251998ef560d13d965337515746d9ada832cf1..40730bb4fdf188cbc97f8daabd5c6b5025f2dfd4 100644 (file)
@@ -344,6 +344,21 @@ error:
        return ret;
 }
 
+/*
+ * Send back the registration DONE command to a given JUL application.
+ *
+ * Return 0 on success or else a negative value.
+ */
+int jul_send_registration_done(struct jul_app *app)
+{
+       assert(app);
+       assert(app->sock);
+
+       DBG("JUL sending registration done to app socket %d", app->sock->fd);
+
+       return send_header(app->sock, 0, JUL_CMD_REG_DONE, 0);
+}
+
 /*
  * Enable JUL event on every JUL applications registered with the session
  * daemon.
This page took 0.023873 seconds and 4 git commands to generate.