|
From: | Andre Przywara |
Subject: | Re: [Qemu-devel] [PATCH] osdep: Fix runtime failure on older Linux kernels |
Date: | Fri, 18 Dec 2009 13:33:10 +0100 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090329) |
Kevin Wolf wrote: >>....
Oh, right you are. This was the untested part, because my glibc didn't have accept4. I only saw the SOCK_CLOEXEC name on this...@@ -302,12 +306,14 @@ int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen)#ifdef CONFIG_ACCEPT4ret = accept4(s, addr, addrlen, SOCK_CLOEXEC); -#else + if (ret != -1 || errno != EINVAL) {Shouldn't this be an ENOSYS?
Fixed patch follows... Regards, Andre. -- Andre Przywara AMD-OSRC (Dresden) Tel: x29712
[Prev in Thread] | Current Thread | [Next in Thread] |