jw-pkg/src
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
..
python jw/pkg/lib/util.run_cmd(): Chunked read_stream() 2026-03-05 06:42:57 +00:00
Makefile projects.py: Move bulk of code into module 2025-11-15 11:08:52 +01:00