ctdb-common: Simplify async computation for sock_socket_write_send/recv
authorAmitay Isaacs <amitay@gmail.com>
Wed, 4 Jan 2017 05:20:17 +0000 (16:20 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 6 Jan 2017 07:37:28 +0000 (08:37 +0100)
commitd9370550a7f72ff02c296ef61bd7f86645167378
tree8b459d1078a03d874023b53854de2ae078275daf
parent03373f6ef0742930ef9ac88a27b06e79b6914643
ctdb-common: Simplify async computation for sock_socket_write_send/recv

This is now just a wrapper around comm_write_send/recv.  This avoids the
extra tevent_req and fixes a bug in the termination of sock_socket_write
computation.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12500

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/sock_daemon.c