Fix broken pipe handling
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Apr 2010 12:06:39 +0000 (14:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 7 Apr 2010 11:59:14 +0000 (13:59 +0200)
commite7b7fb1fa73fa255c2958773738bf19e68992b61
tree2deda66fbfd118a6c192f1f4772d0f2228536a1a
parentce174393d5850687ba76d6f6349a174751733987
Fix broken pipe handling

Metze is right: If we have *any* error at the socket level, we just can
not continue.

Also, apply some defensive programming: With this async stuff someone else
might already have closed the socket.
(cherry picked from commit f140bf2e6578e45b8603d4a6c5feef9a3b735804)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_client/rpc_transport_sock.c