GNOME Bugzilla – Bug 624463
gio assumes kernel support for SOCK_CLOEXEC
Last modified: 2010-07-15 22:12:07 UTC
Created attachment 165967 [details] [review] proposed patch When SOCK_CLOEXEC is defined at build time, gio uses it when calling socket(). However if the kernel it's running on is older, this fails with EINVAL. Attached patch makes it fall back to the non-CLOEXEC behaviour in this case. This bug was causing failures in vala's test suite on Debian's autobuilders, running 2.6.26, see e.g. https://buildd.debian.org/fetch.cgi?pkg=vala&arch=i386&ver=0.9.3-1&stamp=1279137595&file=log&as=raw Cheers, Julien
Review of attachment 165967 [details] [review]: This patch could use a comment like /* fall back on older kernels */ , but other than that looks fine to me.
committed with a comment as Colin suggested. Thanks.