svn commit: samba r20938 - in branches/SAMBA_4_0/source/lib/events: .

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Jan 21 23:19:33 GMT 2007


On Sun, Jan 21, 2007 at 09:02:24PM +0000, tridge at samba.org wrote:
> +struct sigcounter {
> +	uint32_t count;
> +	uint32_t seen;
> +};

Don't we need sig_atomic_t's here? If I get this right, then
these are variables written by the signal handler and read
by the main program and vice versa.

One more question: We get signals, and we don't have an
overflow situation. Now during the signal handling the
overflow happens, the signal handler blocks the signal. We
have read the number of signals before the overflow
happened, so line 244 does not evaluate to true. Where would
the signal be unblocked?

Sorry to be nit-picking, but I want to *understand* this
code.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070122/5f513aa7/attachment.bin


More information about the samba-technical mailing list