X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.c;h=40730bb4fdf188cbc97f8daabd5c6b5025f2dfd4;hb=cf9787eebbfd2005a514fda9952e579712fd4f65;hp=3c251998ef560d13d965337515746d9ada832cf1;hpb=0062bdcc85b99afbe39927229c5fb8e22f5a2ff1;p=lttng-tools.git 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.