[lttng-dev] [lttng-tools PATCH] Add new thread in consumer for metadata handling
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Tue Sep 11 18:00:17 EDT 2012
* David Goulet (dgoulet at efficios.com) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> All fixed!
>
> One comment:
>
> Mathieu Desnoyers:
> > * David Goulet (dgoulet at efficios.com) wrote:
> >> @@ -1025,9 +1007,22 @@ struct lttng_consumer_local_data
> >> *lttng_consumer_create( goto error_thread_pipe; }
> >>
> >> - return ctx; + ret =
> >> utils_create_pipe(ctx->consumer_metadata_pipe); + if (ret < 0) {
> >> + goto error_metadata_pipe; + }
> >>
> >> + ret = utils_create_pipe(ctx->consumer_splice_metadata_pipe); +
> >> if (ret < 0) { + goto error_splice_pipe; + } + + return ctx;
> >>
> >> +error_splice_pipe: +
> >> utils_close_pipe(ctx->consumer_metadata_pipe);
> >> +error_metadata_pipe: +
> >> utils_close_pipe(ctx->consumer_thread_pipe); error_thread_pipe:
> >> for (i = 0; i < 2; i++) { int err; @@ -1088,6 +1083,8 @@ void
> >> lttng_consumer_destroy(struct lttng_consumer_local_data *ctx) if
> >> (ret) { PERROR("close"); } +
> >> utils_close_pipe(ctx->consumer_splice_metadata_pipe);
> >
> > hrm, utils_close_pipe(ctx->consumer_thread_pipe); too ?
>
> It's already closed just before :)
Oh, right, I got mixed up.
Thanks,
Mathieu
>
> Thanks
> David
> -----BEGIN PGP SIGNATURE-----
>
> iQEcBAEBCgAGBQJQT5ivAAoJEELoaioR9I02baEIAMW35FGQeW15nOvQ9+uzBDIH
> 80Ug2rEQ6MyESzHdj8I9vyvuFD2LNGcY3Ltjz07LRc3pJp7mYU4JrWBDkamKcN7g
> jMkSmEUQuOY6oWv1VH0YQ9qnNGQrd1shrjh/oHtAZGq1nY+RMIoYPfClX0CbliRY
> vd3nsXcMJODlT4EStNqnevIDf03RXAEAPEwJT2tk1yByBpFvjbCG2oFym+064KAE
> b8oqbwVuN3Ffo0szY/1HoChQPkj5SWBuZolxhSNj438BBIF1tzo7iz9cFrdkUvW0
> 8oeJ5xVAlSy3wuoW1VucYItSsluASGvutbwx/V0jgykxi0BZnKgxZ8lBtbe6mqQ=
> =iANq
> -----END PGP SIGNATURE-----
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list