I think race condition exists in tango & phobos gc code

redsea redsea at 163.com
Tue Sep 9 06:49:57 PDT 2008


Sean Kelly Wrote:

> SIGUSR2 shouldn't be lost.  Tango sets sa_mask for the signal handlers 
> to tell the OS to block all signals while the handler is processing. 
> The call to sigsuspend is supposed to manually change that for the 
> signals requested.
> 
> > then I check the phobos code, and the code is alike.
> > 
> > Now, I 'm trying to use semaphore to do resume, and would check if my programming run correctly.
> 
> Thanks, please do.  If it really is a problem I'd be happy to change it.


I wrote a small programm kill and sigsuspend use the order as me metioned before, the signal is not lost.   So the real reason should hide more deep.

The version use semaphore finished, but I've to wait the adminstrator test & upload the programming.

I will do more check.

Thanks for your opinions .




More information about the Digitalmars-d mailing list