From: Jacek Caban Subject: [PATCH 4/7] server: Added support for flushing client pipe. Message-Id: <9188cbd4-268f-453a-1058-81767f6397e0@codeweavers.com> Date: Wed, 7 Dec 2016 13:34:37 +0100 Signed-off-by: Jacek Caban --- server/named_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/named_pipe.c b/server/named_pipe.c index e83ae8f..5c50922 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -691,8 +691,9 @@ static obj_handle_t pipe_server_flush( struct fd *fd, const async_data_t *async_ static obj_handle_t pipe_client_flush( struct fd *fd, const async_data_t *async, int blocking ) { - /* FIXME: what do we have to do for this? */ - return 0; + struct pipe_end *pipe_end = get_fd_user( fd ); + /* FIXME: Support byte mode. */ + return use_server_io( pipe_end ) ? pipe_end_flush( pipe_end, async, blocking ) : 0; } static void message_queue_read( struct pipe_end *pipe_end, struct iosb *iosb )