From e0f55b9295a863b171d5cdc4315170c122b559a6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 6 Aug 2015 10:14:53 +0200 Subject: output/fifo: move the buffer into the loop --- src/output/plugins/FifoOutputPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx index f91cacb0f..c2310b98f 100644 --- a/src/output/plugins/FifoOutputPlugin.cxx +++ b/src/output/plugins/FifoOutputPlugin.cxx @@ -226,12 +226,11 @@ FifoOutput::Close() inline void FifoOutput::Cancel() { - char buf[FIFO_BUFFER_SIZE]; - timer->Reset(); ssize_t bytes; do { + char buf[FIFO_BUFFER_SIZE]; bytes = read(input, buf, FIFO_BUFFER_SIZE); } while (bytes > 0 && errno != EINTR); -- cgit v1.2.3