bug-hurd
[Top][All Lists]
Advanced

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

Pthread conformance issue with main thread


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

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 then fix libpthread. Ideally, we could reuse the main thread as part
of the thread pool, but this would mean changing the interface of
diskfs_startup_diskfs (at least), and I didn't take the time to check
the effects on tmpfs (which makes the main thread perform some more
initialization after diskfs_startup_diskfs returns).

In the mean time, I was thinking adding simple blocking calls, replacing
pthread_exit with poll. Is anybody uncomfortable with that hack ?

-- 
Richard Braun



reply via email to

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