summaryrefslogtreecommitdiffstats
path: root/devel/libgtop2/files/patch-lib::read.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-02 05:21:15 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-02 05:21:15 +0800
commit9e9792d7663f1e569efe5640903344449b094b43 (patch)
treed6655e6cf02ea2a3bf144e552009daadddca7aa9 /devel/libgtop2/files/patch-lib::read.c
parent7e9943da6c25d64cfebd70c94f6a29d97e33d53b (diff)
downloadmarcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar.gz
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar.bz2
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar.lz
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar.xz
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.tar.zst
marcuscom-ports-9e9792d7663f1e569efe5640903344449b094b43.zip
Check to see if calls to read() and write() return EAGAIN as well as
EINTR. If they do, continue to poll. While I'm here, fix the problem where file system types were listed as '?'. Note, while this gets gnome-system-monitor working on FreeBSD again, the CPU usage meter is flat-lined at 100% (erroneously). Perhaps some kind soul (*cough* bland) would give it a look. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1386 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2/files/patch-lib::read.c')
-rw-r--r--devel/libgtop2/files/patch-lib::read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/libgtop2/files/patch-lib::read.c b/devel/libgtop2/files/patch-lib::read.c
index 38583f876..7457dcbf1 100644
--- a/devel/libgtop2/files/patch-lib::read.c
+++ b/devel/libgtop2/files/patch-lib::read.c
@@ -21,7 +21,7 @@
- if (ret < 0)
+ if (ret < 0) {
-+ if (errno == EINTR)
++ if (errno == EINTR || errno == EAGAIN)
+ goto retry;
glibtop_error_io_r (server, _("read %d bytes"), size);
+ }