Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37815256
en ru br
Репозитории ALT
S:1.18-alt2
5.1: 0.98alpha16-alt1
4.1: 0.98alpha15-alt6
4.0: 0.98alpha15-alt6
3.0: 0.98alpha15-alt5
www.altlinux.org/Changes

Группа :: Архивирование/Создание CD
Пакет: xcdroast

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xcdroast-0.98alpha15-rh-linebuffer.patch
Скачать


--- xcdroast-0.98alpha15/src/tools.c.linebuffer	2003-10-26 22:28:57.000000000 +0000
+++ xcdroast-0.98alpha15/src/tools.c	2004-07-12 12:24:36.134850404 +0100
@@ -596,8 +596,25 @@
 			if (rc == -1 && errno == EAGAIN) {
 				if (n == 1) 
 					return(-1);
-				else
+				else {
+					/* Partial line read.  Wait a
+					 * bit longer in case there's
+					 * more.  This does not fix
+					 * all the races in the
+					 * parsing code, but works
+					 * around them somewhat. */
+					struct timeval t;
+					fd_set set;
+					FD_ZERO(&set);
+					FD_SET(fd,&set);
+					t.tv_sec = 1;
+					t.tv_usec = 0;
+					if (select (fd+1, &set, NULL,
+						    NULL, &t) > 0)
+						continue;
+
 					break;
+				}	
 			}	
                         return(-1);     /* error */
 		}
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin