From 40136e5f74624895c3f2011b2cb01f764429f799 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 24 Aug 2002 16:03:23 +0000 Subject: [PATCH] * utilunix.c (check_error_pipe): Check error_pipe[0], not stdout. From Pavel Tsekov --- src/ChangeLog | 3 +++ src/utilunix.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 121539b6e..bce857cd4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-08-24 Pavel Roskin + * utilunix.c (check_error_pipe): Check error_pipe[0], not + stdout. From Pavel Tsekov + * achown.c (chown_refresh): Use common_dialog_repaint(). * dlg.h (struct Dlg_head): Separate user flags and internal diff --git a/src/utilunix.c b/src/utilunix.c index b5f2154fb..e2a231929 100644 --- a/src/utilunix.c +++ b/src/utilunix.c @@ -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 ++;