The fix: --- busybox-1.10.1/util-linux/script.c +++ busybox-1.10.1/util-linux/script.c @@ -132,8 +132,7 @@ count = safe_read(pty, buf, sizeof(buf)); if (count <= 0 && errno != EAGAIN) { /* err/eof: don't read anymore */ - pfd[1].revents = 0; - fd_count--; + break; } if (count > 0) { full_write(1, buf, count); -pascal