summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-03 16:18:03 +0200
committerChristian Ambach <ambi@samba.org>2013-06-03 20:01:21 +0200
commitb2380081e23c68d515bd0c257d56ba4a593f991b (patch)
tree9e6e4bcc5b5c8b18d44e0c9e55cf4ececb881540 /source3/lib
parent8a6743e4edcdff1c7860d150720483f19f3b33bb (diff)
downloadsamba-b2380081e23c68d515bd0c257d56ba4a593f991b.tar.gz
samba-b2380081e23c68d515bd0c257d56ba4a593f991b.tar.bz2
samba-b2380081e23c68d515bd0c257d56ba4a593f991b.zip
s3:lib/ctdb_packet use sys_send in packet_fd_write
use the signal safe variant here to prevent spurious errors when running with CTDB and a signal comes in Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Jun 3 20:01:22 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdb_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ctdb_packet.c b/source3/lib/ctdb_packet.c
index 49ade4e88e..5ea1c255da 100644
--- a/source3/lib/ctdb_packet.c
+++ b/source3/lib/ctdb_packet.c
@@ -182,7 +182,7 @@ NTSTATUS ctdb_packet_fd_write(struct ctdb_packet_context *ctx)
{
ssize_t sent;
- sent = send(ctx->fd, ctx->out.data, ctx->out.length, 0);
+ sent = sys_send(ctx->fd, ctx->out.data, ctx->out.length, 0);
if (sent == -1) {
DEBUG(0, ("send failed: %s\n", strerror(errno)));