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