* utilunix.c (check_error_pipe): Check error_pipe[0], not

stdout.  From Pavel Tsekov <ptsekov@gmx.net>
This commit is contained in:
Pavel Roskin 2002-08-24 16:03:23 +00:00
parent 9066ce18c0
commit 40136e5f74
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2002-08-24 Pavel Roskin <proski@gnu.org>
* utilunix.c (check_error_pipe): Check error_pipe[0], not
stdout. From Pavel Tsekov <ptsekov@gmx.net>
* achown.c (chown_refresh): Use common_dialog_repaint().
* dlg.h (struct Dlg_head): Separate user flags and internal

View File

@ -379,8 +379,8 @@ void check_error_pipe (void)
FD_SET (error_pipe[0], &select_set);
timeout.tv_sec = 0;
timeout.tv_usec = 0;
select (FD_SETSIZE, &select_set, 0, 0, &timeout);
if (!FD_ISSET (0, &select_set))
select (error_pipe[0] + 1, &select_set, 0, 0, &timeout);
if (!FD_ISSET (error_pipe[0], &select_set))
break;
read (error_pipe[0], error + len, 1);
len ++;