From 1f04687e4c9fbc5fa4e7e7b1320b6a1b5cdd32d1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 5 Apr 2016 22:21:19 +0200 Subject: [PATCH] s3:vfs:aio_fork: fix O3 error unused result of write Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- source3/modules/vfs_aio_fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index e699fc5d27f..7d06b984009 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -411,7 +411,7 @@ static int aio_child_destructor(struct aio_child *child) * closing the sockfd makes the child not return from recvmsg() on RHEL * 5.5 so instead force the child to exit by writing bad data to it */ - write(child->sockfd, &c, sizeof(c)); + sys_write_v(child->sockfd, &c, sizeof(c)); close(child->sockfd); DLIST_REMOVE(child->list->children, child); return 0; -- 2.34.1