repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 185f1fd122b9c7b74c516a6d0074fc88cf806379:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 185f1fd122b9c7b74c516a6d0074fc88cf806379
Author: Marc Lehmann 
Date:   Sun Dec 25 16:19:34 2005 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index fbca761d74f168032e659c9d27eec122e0c2cbf7..
index ..bc4416f3b8634f43b13ae6e7665e55d968a6dd18 100644
--- a/Changes
+++ b/Changes
@@ -10,8 +10,6 @@ WISH: meta-tagging of data by regex/master process (my dream project)
 WISH: OnTheSpot editing, or maybe switch to miiiiiiif
 WISH: just for fun, do shade and tint with XRender.

-	- workaround for possible linux-kernel bug, details pending.
-
 6.0  Sat Dec 24 13:58:56 CET 2005
 	- make it compile without SMART_RESIZE again.
         - enable slow link support by default.
diff --git a/src/rxvtdaemon.C b/src/rxvtdaemon.C
index a7c5dd11bf05eddc4196e7d72a787ffc6d31217c..
index ..c20446c040e5935473f1561239f644546fdd436b 100644
--- a/src/rxvtdaemon.C
+++ b/src/rxvtdaemon.C
@@ -33,19 +33,6 @@

 #include "rxvtdaemon.h"

-// works around linux kernel bug, returns EAGAIN on a blocking socket
-static ssize_t
-read_ (int fd, void *buf, size_t count)
-{
-  int ret;
-
-  do
-    ret = read (fd, buf, count);
-  while (ret < 0 && errno == EAGAIN);
-
-  return ret;
-}
-
 char *rxvt_connection::unix_sockname ()
 {
   char name[PATH_MAX];
@@ -87,7 +74,7 @@ bool rxvt_connection::recv (auto_str &data, int *len)
   uint8_t s[2];
   int l;

-  if (read_ (fd, s, 2) != 2)
+  if (read (fd, s, 2) != 2)
     return false;

   l = (s[0] << 8) + s[1];
@@ -102,7 +89,7 @@ bool rxvt_connection::recv (auto_str &data, int *len)
   if (!data)
     return false;

-  if (read_ (fd, data, l) != l)
+  if (read (fd, data, l) != l)
     return false;

   data[l] = 0;
@@ -123,7 +110,7 @@ bool rxvt_connection::recv (int &data)
 {
   uint8_t s[4];

-  if (read_ (fd, s, 4) != 4)
+  if (read (fd, s, 4) != 4)
     return false;

   data = (((((s[0] << 8) | s[1]) << 8) | s[2]) << 8) | s[3];

-----END OF PAGE-----