File: 0002-uncompress-prevent-reprepro-from-hanging-on-unzstd.patch

package info (click to toggle)
reprepro 5.3.1-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,544 kB
  • sloc: ansic: 52,340; python: 1,625; sh: 651; makefile: 119
file content (21 lines) | stat: -rw-r--r-- 599 bytes parent folder | download
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;