[Gc] Preserving the value of errno.

Boehm, Hans hans.boehm at hp.com
Wed May 4 16:37:08 PDT 2005

Thanks.  I'll just include it with GC_suspend_handler.

If we ever see similar problems again, at least now we'll
know where to look.


> -----Original Message-----
> From: Miguel de Icaza [mailto:miguel at ximian.com] 
> Sent: Tuesday, May 03, 2005 7:04 PM
> To: Boehm, Hans
> Cc: gc at napali.hpl.hp.com
> Subject: RE: [Gc] Preserving the value of errno.
> Hey,
> > I won't quite use your patch, since things changed around there in 
> > 6.5.  But I did add code to save and restore errno in 
> suspend_handler.
> > 
> > Do you have reason to believe that this is needed in 
> restart_handler? 
> > I believe it shouldn't, since that should only be delivered to a 
> > thread currently executing in the suspend_handler, and thus 
> > suspend_handler should already restore the correct errno.
> We wrote a test case to reproduce the issue with one of the 
> signals, and once we found that this was the problem, I 
> decided to play it safe and just make sure that errno was not 
> going to be overwritten.
> I did not look deeper than that, so you might be right ;-)
> Miguel.

More information about the Gc mailing list