summaryrefslogtreecommitdiffstats
path: root/devel/libgtop2/files/patch-src::daemon::io.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-06 04:54:18 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-06 04:54:18 +0800
commit638b97f5a5d741cee963b662efa43f26ddf9d04c (patch)
treec4dfb23a4708ce0260562560cd232bdef6bb6711 /devel/libgtop2/files/patch-src::daemon::io.c
parent9062210343a87551bd420e59ca2d4e52f1365fe3 (diff)
downloadmarcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.gz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.bz2
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.lz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.xz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.zst
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.zip
Garbage collection GNOME 2.5. Next stop, GNOME 2.7.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2260 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2/files/patch-src::daemon::io.c')
-rw-r--r--devel/libgtop2/files/patch-src::daemon::io.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/devel/libgtop2/files/patch-src::daemon::io.c b/devel/libgtop2/files/patch-src::daemon::io.c
deleted file mode 100644
index 0a11649ce..000000000
--- a/devel/libgtop2/files/patch-src::daemon::io.c
+++ /dev/null
@@ -1,58 +0,0 @@
---- src/daemon/io.c.orig Sun Oct 19 12:54:32 2003
-+++ src/daemon/io.c Mon Dec 1 13:50:25 2003
-@@ -21,6 +21,7 @@
- Boston, MA 02111-1307, USA.
- */
-
-+#include <errno.h>
- #include "daemon.h"
-
- void
-@@ -35,9 +36,13 @@
- resp->offset = offset;
- resp->data_size = data_size;
-
-+retry1:
- if (s == 0) {
-- if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0)
-+ if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0) {
-+ if (errno == EINTR)
-+ goto retry1;
- glibtop_warn_io ("write");
-+ }
- } else {
- if (send (s, (const void *) resp, sizeof (glibtop_response), 0) < 0)
- glibtop_warn_io ("send");
-@@ -47,10 +52,13 @@
- #ifdef REAL_DEBUG
- fprintf (stderr, "Writing %d bytes of data.\n", resp->data_size);
- #endif
--
-+retry2:
- if (s == 0) {
-- if (write (1, data, resp->data_size) < 0)
-+ if (write (1, data, resp->data_size) < 0) {
-+ if (errno == EINTR)
-+ goto retry2;
- glibtop_warn_io ("write");
-+ }
- } else {
- if (send (s, data, resp->data_size, 0) , 0)
- glibtop_warn_io ("send");
-@@ -66,6 +74,7 @@
- size_t already_read = 0, remaining = total_size;
-
- while (already_read < total_size) {
-+retry:
- if (s)
- nread = recv (s, ptr, remaining, 0);
- else
-@@ -77,6 +86,8 @@
- }
-
- if (nread <= 0) {
-+ if (errno == EINTR)
-+ goto retry;
- glibtop_warn_io ("recv");
- return 0;
- }