wok annotate busybox/stuff/busybox-1.10.1-script.u @ rev 751

busybox/script: catch EOF (was hanging with screen=text)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 06 15:21:54 2008 +0000 (2008-05-06)
parents
children
rev   line source
pascal@751 1 --- busybox-1.10.1/util-linux/script.c
pascal@751 2 +++ busybox-1.10.1/util-linux/script.c
pascal@751 3 @@ -132,8 +132,7 @@
pascal@751 4 count = safe_read(pty, buf, sizeof(buf));
pascal@751 5 if (count <= 0 && errno != EAGAIN) {
pascal@751 6 /* err/eof: don't read anymore */
pascal@751 7 - pfd[1].revents = 0;
pascal@751 8 - fd_count--;
pascal@751 9 + break;
pascal@751 10 }
pascal@751 11 if (count > 0) {
pascal@751 12 full_write(1, buf, count);