svn commit: samba r7025 - in branches/SAMBA_3_0/source: lib tdb

derrell at samba.org derrell at samba.org
Fri May 27 18:53:42 GMT 2005


Jeremy Allison <jra at samba.org> writes:

> How about this as a patch instead ?

This is fine.  I was under the impression that the low-level function
read_socket_data() had semantics that were depended upon, so I hadn't wanted
to muck with it.  If it is allowed to loop upon being interrupted by a signal,
this is a much simpler and preferable patch.

> The only thing we'd need to add is
> an abort after XX times around the loop so stop us getting stuck forever
> on a socket returning EAGAIN.

I'll implement it as a max of MAX_INTERRUPTS (e.g. #define MAX_INTERRUPTS 10)
interrupts.  MAX_INTERRUPTS can be manipulated as required.

Derrell


More information about the samba-technical mailing list