From 777b4b021456f5bd8bbadfe97532efc13286e581 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Jun 2005 00:30:49 +0000 Subject: r7705: prevent SIGPIPE. this is what causes BASE-NEGNOWAIT to sometimes fail (This used to be commit 0163d7fe99caee54c6c2bd614e4f076fd00a6176) --- source4/libcli/raw/clisocket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/libcli/raw') diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c index 7cb7040131..d6007ec8ba 100644 --- a/source4/libcli/raw/clisocket.c +++ b/source4/libcli/raw/clisocket.c @@ -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; } -- cgit