script don't catch EOF

Pascal Bellard pascal.bellard at ads-lu.com
Tue May 6 15:41:58 UTC 2008


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





More information about the busybox mailing list