Date: Wed, 24 Jun 1998 03:18:14 -0400 From: Brian Cully <shmit@kublai.com> To: hackers@FreeBSD.ORG Subject: Weirdness with pthreads in -current Message-ID: <19980624031814.19037@kublai.com>
next in thread | raw e-mail | index | archive | help
I've been working on set of Objective C threads framework around pthreads and have come up against something a bit strange. If I call pthread_join(3) on a thread that's called sleep(3), pthread_join returns a value of `3', but errno isn't touched. If I remove the call to sleep inside of the thread, pthread_join works just fine. Pthread_join, BTW, does wait for the thread to die in both conditions, so it does its job correctly, but just returns some kind of bogus value when sleep is called. I suspect this may be for all sorts of signal conditions, but this is the one I ran into. This is -current from 28-May-1998, BTW. -- Brian Cully <shmit@erols.com> ``And when one of our comrades was taken prisoner, blindfolded, hung upside-down, shot, and burned, we thought to ourselves, `These are the best experiences of our lives''' -Pathology (Joe Frank, Somewhere Out There) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980624031814.19037>