Re: [libmicrohttpd] "Failed to join a thread": Race condition when closing the connection?

2018-02-02 Thread Christian Grothoff
Hi Jan-Benedict, This is very strange, the loop should not fix this, as pthread_join should simply block (not race!) until the thread is done. In fact, I generally think the right answer to ESRCH would be to die, as to me this indicates some kind of memory corruption or other severe invariant vio

Re: [libmicrohttpd] "Failed to join a thread": Race condition when closing the connection?

2018-02-02 Thread Jan-Benedict Glaw
Hi Christian, On Fri, 2018-02-02 09:27:59 +0100, Christian Grothoff wrote: > This is very strange, the loop should not fix this, as pthread_join > should simply block (not race!) until the thread is done. In fact, I > generally think the right answer to ESRCH would be to die, as to me this > in