X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.c;h=40730bb4fdf188cbc97f8daabd5c6b5025f2dfd4;hp=3c251998ef560d13d965337515746d9ada832cf1;hb=1b500e7ab6676535ce092106bf4f97929fc2dd54;hpb=8c93562f396a3e785c5193ca32b40f1f16599a6a diff --git a/src/bin/lttng-sessiond/jul.c b/src/bin/lttng-sessiond/jul.c index 3c251998e..40730bb4f 100644 --- a/src/bin/lttng-sessiond/jul.c +++ b/src/bin/lttng-sessiond/jul.c @@ -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.