Re: Autotools macro to test for pthreads fails with "Resource lost" on hurd

Thomas Schwinge <[email protected]> Sun, 18 Oct 2009 10:53:40 +0000 (UTC)
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
Hello!

On Tue, Aug 18, 2009 at 01:28:13PM -0700, Roland McGrath wrote:
> > do we need to add this check?  Or is the glibc code already supposed to
> > handle that correctly?  Roland?
> 
> pthread_kill should short-circuit for signal 0 after it's validated the thread.
> That usage mode is not actually kosher any more as a thread-validity check
> like using kill that way has always been a kosher PID-liveness and
> permission-to-signal check, since pthread_kill is not required to
> gracefully diagnose a bogus pthread_t.  But the degenerate use on
> pthread_self () is always going to work, so I guess that configure check is OK.

Understood.

Samuel now pushed the same short-circuiting code snippet that I had in my
tree (and forgot :-( to push at that time...).  I also enhanced
libpthread's test-16.c with respect to that -- does that look alright?
<http://git.savannah.gnu.org/cgit/hurd/libpthread.git/log/?h=master-test>


Regards,
 Thomas
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFK2vOtsmqaiQAHQR4RAqSgAJ9/CGDvupr7aXItMaRH0YBMOxJR6QCdG1aF
tqUy6smpY8vlhKaKO3/QzmA=
=aI93
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.