Code to replace the unexpected.tdb file

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Jan 5 05:22:18 MST 2011


On Wed, Jan 05, 2011 at 01:05:11PM +0100, Stefan (metze) Metzmacher wrote:
> I think this is wrong:
> +       do {
> +               sock = accept(server->listen_sock,
> +                             (struct sockaddr *)(void *)&sunaddr, &len);
> +       } while (sock == -1 && errno == EINTR);
> +
> +       if (sock == -1) {
> +               return;
> +       }
> 
> when we got a signal we should return instead of looping,
> so that signal events can be processed.

I had the same thought. But I've copied it from winbind, and
it's pretty recent code by Andrew Bartlett. So I thought
this would be right.

Thanks,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen


More information about the samba-technical mailing list