From owner-freebsd-hackers Wed Jun 24 00:18:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA21879 for freebsd-hackers-outgoing; Wed, 24 Jun 1998 00:18:30 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from coleridge.kublai.com (coleridge.kublai.com [207.96.1.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA21836 for ; Wed, 24 Jun 1998 00:18:18 -0700 (PDT) (envelope-from shmit@natasya.kublai.com) Received: from natasya.kublai.com (natasya.kublai.com [207.172.25.236]) by coleridge.kublai.com (8.8.8/8.8.8) with ESMTP id DAA29193 for ; Wed, 24 Jun 1998 03:18:15 -0400 (EDT) (envelope-from shmit@natasya.kublai.com) Received: (from shmit@localhost) by natasya.kublai.com (8.8.8/8.8.8) id DAA23612; Wed, 24 Jun 1998 03:18:15 -0400 (EDT) Message-ID: <19980624031814.19037@kublai.com> Date: Wed, 24 Jun 1998 03:18:14 -0400 From: Brian Cully To: hackers@FreeBSD.ORG Subject: Weirdness with pthreads in -current Reply-To: shmit@kublai.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i X-Sender: If your mailer pays attention to this, it's broken. X-PGP-Info: finger shmit@kublai.com for my public key. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ``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