From: Jacek Caban Subject: [PATCH 13/16] server: Added support for flushing client pipe. Message-Id: Date: Wed, 5 Oct 2016 21:31:51 +0200 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 437c40c..d6bbf00 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -693,8 +693,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 )