This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: test/demo patch for pthread manager
- To: Pavel Krauz <xkr at nettest dot dk>
- Subject: Re: test/demo patch for pthread manager
- From: Andreas Jaeger <aj at suse dot de>
- Date: 28 Mar 2000 11:29:51 +0200
- Cc: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- References: <38E07826.A12CE07@nettest.dk>
>>>>> Pavel Krauz writes:
> Hello
> This is a test/demo patch to glibc-linuxthreads-2.1.3. It requires
> kernel 2.3.99
> - particularly for (CLONE_PARENT and (2) prctl).
I'd like to see support for older kernels, also - this could mean
using the old interface. But let's first others comment with good
knowledge of linuxthreads on your patch.
When was CLONE_PARENT introdruced? Or is it only usable with
2.3.99pre1?
> @@ -130,11 +136,12 @@
> if (! th->p_terminated) {
> /* Register extrication interface */
> __pthread_set_own_extricate_if(self, &extr);
> - if (!(THREAD_GETMEM(self, p_canceled)
> + if ((THREAD_GETMEM(self, p_canceled)
> && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE))
> - th->p_joining = self;
> - else
> already_canceled = 1;
> + else
> + th->p_joining = self;
> +
> __pthread_unlock(&handle->h_lock);
Remove this part ;-)
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de