--- lib/read.c.orig Fri Jun 18 04:03:55 2004 +++ lib/read.c Sat Aug 7 16:05:41 2004 @@ -22,6 +22,7 @@ */ #include +#include #include #include "libgtop-i18n.h" @@ -56,14 +57,18 @@ fprintf (stderr, "LIBRARY: really reading %d bytes.\n", size); #endif +retry: if (server->socket) { do_read (server->socket, buf, size); } else { - if(read (server->input [0], buf, size) < 0) + if(read (server->input [0], buf, size) < 0) { + if (errno == EINTR) + goto retry; glibtop_error_io_r ( server, ngettext ("read %d byte", "read %d bytes", size), size); + } } }