Fix broken pipe handling
commit67b51cc9e773fcbbc2b942a1de256e2c5b695008
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Apr 2010 12:06:39 +0000 (6 14:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Apr 2010 18:18:51 +0000 (13 20:18 +0200)
treee34930a34929ee2d3a88848e59a155e017e3c8be
parent407b9577febff6dfbe29106d783d64c41d6fe4e4
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