Fix broken pipe handling
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Apr 2010 12:06:39 +0000 (14:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 May 2010 12:08:35 +0000 (14:08 +0200)
commitdb29ba6c5e6ede7bd94368f2cc66ac0647b86d6a
tree926eae6bb3571ebb8ce01eaab62652afb7d299a7
parent9c056c0afbc824f179fdb3dbbac6babed9130e63
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>
(cherry picked from commit 67b51cc9e773fcbbc2b942a1de256e2c5b695008)
source3/rpc_client/rpc_transport_sock.c