On Thu, Jul 05, 2001 at 07:15:59PM -0700, Gurusamy Sarathy wrote: > On Thu, 05 Jul 2001 13:34:51 EDT, Norton Allen wrote: > >exit 0 > >============= > > > > This patch addresses the fact that osset is used in a > > saved destructor after the local C scope has expired. > > I will gladly entertain a more elegant solution if it > > is warranted. > > > > -Norton Allen > > > >*** ../ORIG/perl-11148/ext/POSIX/POSIX.xs Mon Jul 2 09:00:31 2001 > >--- perl-11148/ext/POSIX/POSIX.xs Thu Jul 5 13:24:11 2001 > >*************** > >*** 1185,1191 **** > > struct sigaction act; > > struct sigaction oact; > > sigset_t sset; > >! sigset_t osset; > > POSIX__SigSet sigset; > > SV** svp; > > SV** sigsvp = hv_fetch(GvHVn(siggv), > >--- 1185,1191 ---- > > struct sigaction act; > > struct sigaction oact; > > sigset_t sset; > >! static sigset_t osset; > > This is not thread-safe. I suggest allocating the space for it on Damn. You waited till I replied "Thanks, applied", didn't you? :-) > the savestack, either via SSNEW() or using a newSVpv()+SAVEFREESV() > combo. > > Sarathy > gsar@ActiveState.com -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen