Another showstopper in 2.2.5

Tom Jansen tom at ninja.nl
Tue Aug 20 09:06:00 GMT 2002


> > > Sooner or later the smbd dies on a SIGPIPE when trying to send a
> > > keepalive. The SIGPIPE isn't catched, thus it leaves stale sharemodes.

> After getting a hint on signalhandling I put a BlockSignals call into
> send_keepalive.
>
>
> --- lib/util_sock.c.org Tue Aug 20 12:31:58 2002
> +++ lib/util_sock.c     Tue Aug 20 12:33:15 2002
> @@ -401,6 +401,7 @@
>         buf[0] = 0x85;
>         buf[1] = buf[2] = buf[3] = 0;
>
> +       BlockSignals(True,SIGPIPE);
>         return(write_socket_data(client,(char *)buf,4) == 4);
>  }

What about unblocking ?

-- 
Tom Jansen -- tom at ninja.nl
Ninja ISD  -- www.ninja.nl




More information about the samba-technical mailing list