mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* utilunix.c (check_error_pipe): Check error_pipe[0], not
stdout. From Pavel Tsekov <ptsekov@gmx.net>
This commit is contained in:
parent
9066ce18c0
commit
40136e5f74
@ -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
|
||||
|
@ -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 ++;
|
||||
|
Loading…
Reference in New Issue
Block a user