[Gc] Preserving the value of errno.
hans.boehm at hp.com
Tue May 3 17:46:38 PDT 2005
Thanks for tracking this down.
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
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
already restore the correct errno.
> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Miguel de Icaza
> Sent: Monday, May 02, 2005 4:11 PM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] Preserving the value of errno.
> We noticed that the value of errno was being clobbered
> using libgc in Mono, the following patch fixes the problem.
> The error was hard to reproduce and it meant that an
> ENOENT was being mapped into an EINTR.
> Miguel de Icaza <miguel at ximian.com>
More information about the Gc