test/demo patch for pthread manager
Andreas Jaeger
aj@suse.de
Tue Mar 28 01:31:00 GMT 2000
>>>>> 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
More information about the Libc-alpha
mailing list