NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/54661: pthread_self() returns invalid value in some circumstances
The following reply was made to PR lib/54661; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/54661: pthread_self() returns invalid value in some
circumstances
Date: Wed, 30 Oct 2019 11:08:38 +0100
On Wed, Oct 30, 2019 at 06:10:00AM +0000, tgl%sss.pgh.pa.us@localhost wrote:
> pthread_self() sometimes returns an invalid pointer ((void *) -1),
> as illustrated in How-To-Repeat.
Why do you think it's an invalid pointer? It's an opaque value.
Comparing it against any fixed value is a bug in the caller.
Joerg
Home |
Main Index |
Thread Index |
Old Index