[lttng-dev] [lttng-tools PATCH] Add new thread in consumer for metadata handling
David Goulet
dgoulet at efficios.com
Tue Sep 11 16:01:54 EDT 2012
-----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 :)
Thanks
David
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJQT5ivAAoJEELoaioR9I02baEIAMW35FGQeW15nOvQ9+uzBDIH
80Ug2rEQ6MyESzHdj8I9vyvuFD2LNGcY3Ltjz07LRc3pJp7mYU4JrWBDkamKcN7g
jMkSmEUQuOY6oWv1VH0YQ9qnNGQrd1shrjh/oHtAZGq1nY+RMIoYPfClX0CbliRY
vd3nsXcMJODlT4EStNqnevIDf03RXAEAPEwJT2tk1yByBpFvjbCG2oFym+064KAE
b8oqbwVuN3Ffo0szY/1HoChQPkj5SWBuZolxhSNj438BBIF1tzo7iz9cFrdkUvW0
8oeJ5xVAlSy3wuoW1VucYItSsluASGvutbwx/V0jgykxi0BZnKgxZ8lBtbe6mqQ=
=iANq
-----END PGP SIGNATURE-----
More information about the lttng-dev
mailing list