[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. 3883534a606e06fa70b5
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. 3883534a606e06fa70b5d73fb59fb46ee8caf221 |
Date: |
Thu, 14 Oct 2010 17:55:17 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 3883534a606e06fa70b5d73fb59fb46ee8caf221 (commit)
via 14f462bd7d29ca716dc4be95ada04786e61fc9e6 (commit)
from 135d264d8d2b08834d039bee550e2996b3e64358 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=3883534a606e06fa70b5d73fb59fb46ee8caf221
commit 3883534a606e06fa70b5d73fb59fb46ee8caf221
Author: Sandro Santilli <address@hidden>
Date: Thu Oct 14 19:55:08 2010 +0200
Do not use the non-standard MSG_NOSIGNAL flag
diff --git a/libbase/Socket.cpp b/libbase/Socket.cpp
index 3913841..7d1834e 100644
--- a/libbase/Socket.cpp
+++ b/libbase/Socket.cpp
@@ -321,7 +321,12 @@ Socket::write(const void* src, std::streamsize num)
const char* buf = static_cast<const char*>(src);
while (toWrite > 0) {
- bytesSent = ::send(_socket, buf, toWrite, MSG_NOSIGNAL);
+ // I'd like to get no SIGPIPE here, as we wouldn't
+ // know how to handle. Instead, for broken pipe I'd
+ // prefer being notified with a return of -1.
+ // Is that possible, in a standard way ?
+ // MSG_NOSIGNAL was reported as being non-standard flag..
+ bytesSent = ::send(_socket, buf, toWrite, 0);
if (bytesSent < 0) {
const int err = errno;
log_error("Socket send error %s", std::strerror(err));
http://git.savannah.gnu.org/cgit//commit/?id=14f462bd7d29ca716dc4be95ada04786e61fc9e6
commit 14f462bd7d29ca716dc4be95ada04786e61fc9e6
Author: Sandro Santilli <address@hidden>
Date: Thu Oct 14 19:48:31 2010 +0200
More tests for argumentsToXML
diff --git a/testsuite/actionscript.all/ExternalInterface.as
b/testsuite/actionscript.all/ExternalInterface.as
index b9e2e38..ff9d290 100644
--- a/testsuite/actionscript.all/ExternalInterface.as
+++ b/testsuite/actionscript.all/ExternalInterface.as
@@ -219,6 +219,10 @@ xml = EI._argumentsToXML();
xcheck_equals (xml, '<arguments></arguments>');
xml = EI._argumentsToXML(['single']);
xcheck_equals (xml, '<arguments></arguments>');
+xml = EI._argumentsToXML('one');
+xcheck_equals (xml, '<arguments><undefined/><undefined/></arguments>');
+xml = EI._argumentsToXML(1,2,3);
+xcheck_equals (xml, '<arguments></arguments>');
// xml = EI._toXML(o);
// if (xml == '<object><property id="a"><number>1</number></property><property
id="b"><string>string</string></property></object>') {
@@ -289,6 +293,6 @@ xcheck_equals (typeOf(val), 'object');
#elif OUTPUT_VERSION < 8 // }{
check_totals(49);
#else // SWF8+ }{
- check_totals(95);
+ check_totals(97);
# endif // }
-----------------------------------------------------------------------
Summary of changes:
libbase/Socket.cpp | 7 ++++++-
testsuite/actionscript.all/ExternalInterface.as | 6 +++++-
2 files changed, 11 insertions(+), 2 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. 3883534a606e06fa70b5d73fb59fb46ee8caf221,
Sandro Santilli <=