[Gc] Preserving the value of errno.

Miguel de Icaza miguel at ximian.com
Tue May 3 19:03:35 PDT 2005


> 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 ;-)


More information about the Gc mailing list