replaced send(2) with write(2), the MSG_NOSIGNAL flag was causing trouble on linux with glibc 2.0.7 The flag was pretty useless anyway because we ignore SIGPIPE
replaced send(2) with write(2), the MSG_NOSIGNAL flag
was causing trouble on linux with glibc 2.0.7
The flag was pretty useless anyway because we ignore
SIGPIPE

ok'ed by Dirk Mueller

Index: knprotocolclient.cpp
===================================================================
RCS file: /home/kde/kdenetwork/knode/knprotocolclient.cpp,v
retrieving revision 1.18
diff -u -3 -p -r1.18 knprotocolclient.cpp
--- knprotocolclient.cpp        2000/09/03 23:06:03     1.18
+++ knprotocolclient.cpp        2000/09/06 22:52:07
@@ -33,15 +33,6 @@
 #include <stdlib.h>
 #include <unistd.h>

-#ifndef MSG_NOSIGNAL
-/* bloody glibc 2.0 doesn't define MSG_NOSIGNAL */
-#ifdef __linux__
-#define MSG_NOSIGNAL 0x4000
-#else
-#define MSG_NOSIGNAL 0
-#endif
-#endif
-
 #include <qstrlist.h>
 #include <klocale.h>

@@ -657,7 +648,7 @@ bool KNProtocolClient::sendStr(const QCS
   while (todo > 0) {
     if (!waitForWrite())
       return false;
-    ret = send(tcpSocket,&str.data()[done],todo, MSG_NOSIGNAL);
+    ret = write(tcpSocket,&str.data()[done],todo);
     if (ret <= 0) {
       if (job) {
         QString str = i18n("Communication error:\n");

svn path=/trunk/kdenetwork/knode/; revision=62981

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi