r7705: prevent SIGPIPE. this is what causes BASE-NEGNOWAIT to sometimes fail
authorAndrew Tridgell <tridge@samba.org>
Sat, 18 Jun 2005 00:30:49 +0000 (00:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:24 +0000 (13:18 -0500)
source/libcli/raw/clisocket.c

index 7cb7040131071249c9218aa100b650b038ec9ae4..d6007ec8ba3977cced1eae05df0e093d865b6f13 100644 (file)
@@ -63,6 +63,9 @@ struct smbcli_socket *smbcli_sock_init(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
+       /* ensure we don't get SIGPIPE */
+       BlockSignals(True,SIGPIPE);
+
        return sock;
 }