jw-pkg/src/python/jw
Jan Lindemann ae902250bd jw/pkg/lib/util.run_cmd(): Chunked read_stream()

jw-pkg distro dup got hung in a chroot environment. strace shows that write(2) into a pipe is the hanging syscall, with the write buffer hinting at zypper dup output.

I strongly suspect that run_cmd() tries to write stdout into the pipe which read_stream() fails to empty. So, make read_stream() more resilient by using read(4096) instead of readline(), which I suspect to be prone to hang on overlong lines.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-03-05 06:42:57 +00:00
..
pkg jw/pkg/lib/util.run_cmd(): Chunked read_stream() 2026-03-05 06:42:57 +00:00
__init__.py jw.__init__.py: Add empty file 2025-11-16 19:43:49 +01:00
Makefile jw.__init__.py: Add empty file 2025-11-16 19:43:49 +01:00