[Gc] patch to handle EINTR

Boehm, Hans hans.boehm at hp.com
Thu Jan 20 17:43:37 PST 2005


Thanks.  I made the gc7 version less verbose.

Presumably there is some reason sem_wait doesn't retry internally
to hide the signal.

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com
> [mailto:gc-bounces at napali.hpl.hp.com]On Behalf Of Paolo Molaro
> Sent: Wednesday, January 19, 2005 7:47 AM
> To: Gc at napali.hpl.hp.com
> Subject: Re: [Gc] patch to handle EINTR
> 
> 
> On 01/18/05 Boehm, Hans wrote:
> > I actually already had a more verbose version of this in 
> the gc7 tree.
> > I put your version into the gc6.5 tree.
> > 
> > Is this actually supposed to happen somewhere?  I observed 
> this on Linux
> > when running under gdb.  But the sem_wait documentation on 
> Linux very
> > explicitly states that this can't happen.  Hence the current code
> > complains before ignoring it.
> 
> I noticed the issue when using gdb, too.
> I think the documentation in the manpage is wrong and we shouldn't
> rely on it: any syscall could be interrupted and needs to deal with
> EINTR (I think this was mentioned recently on linux-kernel, too).
> Thanks.
> 
> lupus
> 
> -- 
> -----------------------------------------------------------------
> lupus at debian.org                                     debian/rules
> lupus at ximian.com                             Monkeys do it better
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 


More information about the Gc mailing list