Commit e0f55b92 authored by Max Kellermann's avatar Max Kellermann

output/fifo: move the buffer into the loop

parent ccd83748
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment