From: Jacek Caban Subject: [PATCH 12/16] server: Added support for flushing client pipe. Message-Id: Date: Thu, 26 Jan 2017 00:53:12 +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 f1314d24..be0015f 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -690,8 +690,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 )