svn commit: samba r20938 - in
Volker.Lendecke at SerNet.DE
Mon Jan 22 07:41:53 GMT 2007
On Mon, Jan 22, 2007 at 05:35:05PM +1100, tridge at samba.org wrote:
> > I was more worried about the other way round: Non-blocked at
> > the if statement and becoming blocked before the unblock.
> That's why it grabs a local copy of the sigcounter at the start of
> that block of code, like this:
> struct sigcounter counter = sig_state.signal_count[i];
> uint32_t count = sig_count(counter);
> so if you get a signal while in that loop then SIG_PENDING() that time
> round may evaluate as false, but the pipe will be readable, so you'll
> come back into this code again, and the counter will have incremented,
> which means the blocked counter will now be set.
Ok. Subtle, but looks ok to me now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070122/d0ac04bd/attachment.bin
More information about the samba-technical