mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 01:25:55 +02:00
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> |
||
|---|---|---|
| .. | ||
| pkg | ||
| __init__.py | ||
| Makefile | ||