summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-18 00:30:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:24 -0500
commit777b4b021456f5bd8bbadfe97532efc13286e581 (patch)
tree33c510cfbde6798c31e85b7d1275c7faa7e4ca18 /source4
parentee57c76a687c72ac7e8dc7c135ab53baa7a42776 (diff)
downloadsamba-777b4b021456f5bd8bbadfe97532efc13286e581.tar.gz
samba-777b4b021456f5bd8bbadfe97532efc13286e581.tar.bz2
samba-777b4b021456f5bd8bbadfe97532efc13286e581.zip
r7705: prevent SIGPIPE. this is what causes BASE-NEGNOWAIT to sometimes fail
(This used to be commit 0163d7fe99caee54c6c2bd614e4f076fd00a6176)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/clisocket.c3
1 files changed, 3 insertions, 0 deletions
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;
}