search for: 00e6031

Displaying 2 results from an estimated 2 matches for "00e6031".

Did you mean: 006603
2018 Nov 08
2
[nbdkit PATCH] test-layers: Avoid thread leak
...yers leaks a pthread; while harmless, it is also an easy fix, by detaching the thread to ensure it gets cleaned up. Signed-off-by: Eric Blake <eblake@redhat.com> --- tests/test-layers.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-layers.c b/tests/test-layers.c index 00e6031..7b58699 100644 --- a/tests/test-layers.c +++ b/tests/test-layers.c @@ -152,6 +152,12 @@ main (int argc, char *argv[]) perror ("pthread_create"); exit (EXIT_FAILURE); } + err = pthread_detach(&thread); + if (err) { + errno = err; + perror ("pthread_detach&quo...
2018 Nov 08
0
Re: [nbdkit PATCH] test-layers: Avoid thread leak
...o an easy > fix, by detaching the thread to ensure it gets cleaned up. > > Signed-off-by: Eric Blake <eblake@redhat.com> > --- > tests/test-layers.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tests/test-layers.c b/tests/test-layers.c > index 00e6031..7b58699 100644 > --- a/tests/test-layers.c > +++ b/tests/test-layers.c > @@ -152,6 +152,12 @@ main (int argc, char *argv[]) > perror ("pthread_create"); > exit (EXIT_FAILURE); > } > + err = pthread_detach(&thread); It helps if I don't send a...