1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Bastian Germann <bage@debian.org>
Date: Mon, 8 Jan 2024 20:30:49 +0100
Subject: Wait for poll event
---
uncompression.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/uncompression.c b/uncompression.c
index 1087b0b..d738a70 100644
--- a/uncompression.c
+++ b/uncompression.c
@@ -1430,7 +1430,7 @@ static inline retvalue drain_pipe_fd(struct compressedfile *file, int *errno_p,
0
};
unsigned char buffer[4096] = {};
- while ((e = poll(&pollfd, 1, 0)) > 0) {
+ while ((e = poll(&pollfd, 1, -1)) > 0) {
e = read(file->fd, buffer, 4096);
if (e <= 0)
break;
|