develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [patch] pthread_atfork bandaid

Thread Previous | Thread Next
From:
Doug MacEachern
Date:
July 11, 2001 22:47
Subject:
Re: [patch] pthread_atfork bandaid
Message ID:
Pine.LNX.4.21.0107112244210.28844-100000@mako.covalent.net
On Wed, 11 Jul 2001, Doug MacEachern wrote:

> can you run 'make perl.i' and see if THX is really needed in the atfork
> functions?

btw, i did that here and didn't see THX being used by Perl_*_atfork,
here they expand to:

void
Perl_atfork_lock(void)
{
    (void)( { if (pthread_mutex_lock((&PL_op_mutex))) Perl_croak_nocontext("panic: MUTEX_LOCK"); }
);
}

void
Perl_atfork_unlock(void)
{
    (void)( { if (pthread_mutex_unlock((&PL_op_mutex))) Perl_croak_nocontext("panic: MUTEX_UNLOCK"); }
);
}

i hacked in #define MYMALLOC and still didn't see THX being used.



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About