diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-11-15 04:08:22 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-11-15 04:08:22 +0800 |
commit | f3ba293a22501795f4fc0c820df90449fed3a045 (patch) | |
tree | 03fad67a274cd8c997d5e193c5945de643cedfe6 /devel/libgtop2/files/patch-lib::read.c | |
parent | d36bc2ee666da712d89569dfb5e079d6281c5044 (diff) | |
download | marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar.gz marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar.bz2 marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar.lz marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar.xz marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.tar.zst marcuscom-ports-f3ba293a22501795f4fc0c820df90449fed3a045.zip |
Update to 2.5.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1330 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2/files/patch-lib::read.c')
-rw-r--r-- | devel/libgtop2/files/patch-lib::read.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/libgtop2/files/patch-lib::read.c b/devel/libgtop2/files/patch-lib::read.c new file mode 100644 index 000000000..38583f876 --- /dev/null +++ b/devel/libgtop2/files/patch-lib::read.c @@ -0,0 +1,28 @@ +--- lib/read.c.orig Mon Oct 20 11:19:41 2003 ++++ lib/read.c Fri Nov 14 14:37:00 2003 +@@ -22,6 +22,7 @@ + */ + + #include <config.h> ++#include <errno.h> + #include <glibtop/read.h> + #include <libgnome/gnome-i18n.h> + +@@ -68,12 +69,16 @@ + fprintf (stderr, "LIBRARY: really reading %d bytes.\n", size); + #endif + ++retry: + if (server->socket) { + do_read (server->socket, buf, size); + } else { + ret = read (server->input [0], buf, size); + } + +- if (ret < 0) ++ if (ret < 0) { ++ if (errno == EINTR) ++ goto retry; + glibtop_error_io_r (server, _("read %d bytes"), size); ++ } + } |