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

Re: [PATCH ext/POSIX/] Re: sigaction.t under QNX

Thread Previous
Gurusamy Sarathy
July 6, 2001 04:53
Re: [PATCH ext/POSIX/] Re: sigaction.t under QNX
Message ID:
On Fri, 06 Jul 2001 10:57:07 BST, Mike Guy wrote:
>Gurusamy Sarathy <> wrote
>> This is not thread-safe.  I suggest allocating the space for it on
>> the savestack, either via SSNEW() or using a newSVpv()+SAVEFREESV()
>> combo.
>Would a new mortalised SV do the trick instead?

The lifetimes may be different, so it is risky.  Using the savestack
guarantees it will stay live for exactly the right duration.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About