From 6ad2a33e7fc5cda05eefdec789f4a2033645ebbe Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 28 Jun 2014 14:48:24 +0200 Subject: Revert "libpipe: fix calls to pipe_send with no data" This reverts commit 6f856c62613ffc82bf3572a372d2851638c2fb90. As the comment right above the change says, "this [sending control packets] depends on the fact that we always write a data packet". --- libpipe/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpipe') diff --git a/libpipe/pipe.c b/libpipe/pipe.c index 56c339dd..f9300e7c 100644 --- a/libpipe/pipe.c +++ b/libpipe/pipe.c @@ -358,7 +358,7 @@ pipe_send (struct pipe *pipe, int noblock, void *source, } } - if (!err && data_len > 0) + if (!err) err = (*pipe->class->write)(pipe->queue, source, data, data_len, amount); if (!err) -- cgit v1.2.3