]> git.pld-linux.org Git - packages/neon.git/commitdiff
- don't fail if SOCK_CLOEXEC is unsupported
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Mar 2009 07:59:04 +0000 (07:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    neon-sock-cloexec.patch -> 1.1

neon-sock-cloexec.patch [new file with mode: 0644]

diff --git a/neon-sock-cloexec.patch b/neon-sock-cloexec.patch
new file mode 100644 (file)
index 0000000..1e58681
--- /dev/null
@@ -0,0 +1,11 @@
+--- neon-0.28.4/src/ne_socket.c.org    2009-03-19 08:46:03.086665679 +0100
++++ neon-0.28.4/src/ne_socket.c        2009-03-19 08:52:50.236710428 +0100
+@@ -1209,6 +1209,8 @@
+     /* use SOCK_STREAM rather than ai_socktype: some getaddrinfo
+      * implementations do not set ai_socktype, e.g. RHL6.2. */
+     fd = socket(ia_family(addr), SOCK_STREAM | SOCK_CLOEXEC, ia_proto(addr));
++    if (fd < 0 && errno == EINVAL)
++          fd = socket(ia_family(addr), SOCK_STREAM, ia_proto(addr));
+     if (fd < 0) {
+         set_strerror(sock, ne_errno);
+       return -1;
This page took 0.210016 seconds and 4 git commands to generate.