Re: Pthread conformance issue with main thread

2013-11-12 Thread Richard Braun
On Tue, Nov 12, 2013 at 02:34:18PM +0100, Richard Braun wrote: > Right, I misread the specification, thanks for correcting. FYI, this means we currently have a bug with regard to that : after the main thread calls pthread_exit(), and thread destruction is actually implemented (as opposed to the cu

Re: Pthread conformance issue with main thread

2013-11-12 Thread Richard Braun
On Tue, Nov 12, 2013 at 12:42:45PM +0100, Samuel Thibault wrote: > Uh? It mandates that if the main() function returns, exit() is called, > and thus the whole process exits. But if main() calls pthread_exit(), > only the thread is terminated, not the whole process. I don't see > anything saying

Re: Pthread conformance issue with main thread

2013-11-12 Thread Samuel Thibault
Richard Braun, le Tue 12 Nov 2013 12:02:28 +0100, a écrit : > all diskfs translators, exit from the main thread after initialization. > But POSIX mandates that exiting from the main thread makes the whole > process exit too. Uh? It mandates that if the main() function returns, exit() is called, a

Pthread conformance issue with main thread

2013-11-12 Thread Richard Braun
Hello, As part of my work on thread destruction, I noticed that some servers, all diskfs translators, exit from the main thread after initialization. But POSIX mandates that exiting from the main thread makes the whole process exit too. My intention is to first fix the Hurd servers involved and th