From: Michael Adam Date: Tue, 5 Apr 2016 20:21:19 +0000 (+0200) Subject: s3:vfs:aio_fork: fix O3 error unused result of write X-Git-Tag: tdb-1.3.10~1168 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=1f04687e4c9fbc5fa4e7e7b1320b6a1b5cdd32d1 s3:vfs:aio_fork: fix O3 error unused result of write Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- 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;