Kevin Wolf wrote:
>>....
@@ -302,12 +306,14 @@ int qemu_accept(int s, struct sockaddr *addr, socklen_t 
*addrlen)
#ifdef CONFIG_ACCEPT4
     ret = accept4(s, addr, addrlen, SOCK_CLOEXEC);
-#else
+    if (ret != -1 || errno != EINVAL) {

Shouldn't this be an ENOSYS?
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...
Fixed patch follows...

Regards,
Andre.

--
Andre Przywara
AMD-OSRC (Dresden)
Tel: x29712



Reply via email to