script don't catch EOF

Denys Vlasenko vda.linux at googlemail.com
Tue May 6 12:10:55 PDT 2008


On Tuesday 06 May 2008 17:41, Pascal Bellard wrote:
> 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

Applied, thanks!
--
vda


More information about the busybox mailing list