reassign 529929 libneon27 thanks > On Fri, May 22, 2009 at 01:26:58PM +0200, Johann Glaser wrote: > > socket(PF_INET, 0x80001 /* SOCK_??? */, IPPROTO_TCP) = -1 EINVAL (Invalid > > argument) > > where 0x80001 means SOCK_STREAM | SOCK_CLOEXEC but strace doesn't seem to > > know that (yet). Strangely the kernel rejects this flag (while a socket() > > with SOCK_DGRAM with IPPROTO_IP for a DNS lookup worked a few lines before). > > > > $ uname -a > > Linux glaser 2.6.26 #1 PREEMPT Thu Dec 25 21:38:28 CET 2008 i686 GNU/Linux
[Aurelien Jarno]
> You need a kernel >= 2.6.27 (or a higher version on some
> architecture) to be able to use SOCK_CLOEXEC. The code should have
> fallback for these kernels.
This code in neon's src/ne_socket.c:
#ifndef SOCK_CLOEXEC
#define SOCK_CLOEXEC 0
#define USE_CLOEXEC
#endif
implies that support for SOCK_CLOEXEC is detected by what is defined in
a kernel header. Instead it needs to be detected at runtime, given a
binary Linux distribution such as Debian. I'm reassigning this bug
accordingly. It looks like a duplicate of bug 529920, but I'm not
sure, so I'm not merging them.
--
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
signature.asc
Description: Digital signature

