bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pthread conformance issue with main thread


From: Richard Braun
Subject: Re: Pthread conformance issue with main thread
Date: Tue, 12 Nov 2013 14:34:18 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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 that it should terminate the whole process, on the
> contrary: “The process shall exit with an exit status of 0 after the
> last thread has been terminated.”, which implys that main() too has
> called pthread_exit() to terminate itself but not the whole process.

Right, I misread the specification, thanks for correcting.

-- 
Richard Braun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]