s3:vfs:aio_fork: fix O3 error unused result of write
authorMichael Adam <obnox@samba.org>
Tue, 5 Apr 2016 20:21:19 +0000 (22:21 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 12 May 2016 22:16:16 +0000 (00:16 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/modules/vfs_aio_fork.c

index e699fc5d27f55d029e76e6ba99018ed975269316..7d06b984009cccd7b86b4485a6b729fb1b2cee25 100644 (file)
@@ -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;