[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] [PATCH] Avoid silent misbehaviour on pthread join fa
From: |
Mike Crowe |
Subject: |
Re: [libmicrohttpd] [PATCH] Avoid silent misbehaviour on pthread join failure |
Date: |
Fri, 9 Oct 2009 15:22:10 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Oct 09, 2009 at 03:24:48PM +0200, Christian Grothoff wrote:
> Makes sense. I've fixed this in SVN HEAD, but with a slightly more verbose
> report in case that --enable-messages was given to configure.
Thanks.
Actually it turns out that I hadn't adequately tested my patch.
pthread_kill returns ESRCH when called on a terminated but not yet
joined thread.
It would seem that either ignoring the return value of pthread_kill as
before or explicitly allowing ESRCH would be a better solution.
Oddly 'make check' didn't seem to spot this. :(
I can prepare a fixed patch based on SVN HEAD if you'd like me to.
Sorry.
Mike.