gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] [SCM] Gnash branch, master and MSG_NOSIGNAL


From: Andrea Palmatè
Subject: Re: [Gnash-commit] [SCM] Gnash branch, master and MSG_NOSIGNAL
Date: Thu, 14 Oct 2010 15:36:49 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4

Il 12/10/2010 00:43, Sandro Santilli ha scritto:

commit 2582b17f3b6519f8ba67ff6ca0c32aaf43156226
Author: Sandro Santilli<address@hidden>
Date:   Tue Oct 12 00:43:38 2010 +0200

     Request not to send SIGPIPE while sending to socket

diff --git a/libbase/Socket.cpp b/libbase/Socket.cpp
index d276121..3913841 100644
--- a/libbase/Socket.cpp
+++ b/libbase/Socket.cpp
@@ -321,7 +321,7 @@ Socket::write(const void* src, std::streamsize num)
      const char* buf = static_cast<const char*>(src);

      while (toWrite>  0) {
-        bytesSent = ::send(_socket, buf, toWrite, 0);
+        bytesSent = ::send(_socket, buf, toWrite, MSG_NOSIGNAL);
          if (bytesSent<  0) {
              const int err = errno;
              log_error("Socket send error %s", std::strerror(err));

is MSG_NOSIGNAL a standard signal? I have on my BSD-like stack and also Apple BSD seems to miss this flag. Is it available only on linux platforms?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]