Re: [Qemu-devel] [PATCH] linux-user: Emulate SOCK_CLOEXEC/NONBLOCK if unavailable

2013-09-23 Thread Edgar E. Iglesias
On Mon, Sep 23, 2013 at 12:37:10PM +0300, Riku Voipio wrote: > Hi, Hi Riku, > > On Mon, Sep 16, 2013 at 03:08:06PM +0200, edgar.igles...@gmail.com wrote: > > From: "Edgar E. Iglesias" > > > > If the host lacks support for SOCK_CLOEXEC or SOCK_NONBLOCK, > > try to emulate them with fcntl() FD_C

Re: [Qemu-devel] [PATCH] linux-user: Emulate SOCK_CLOEXEC/NONBLOCK if unavailable

2013-09-23 Thread Riku Voipio
Hi, On Mon, Sep 16, 2013 at 03:08:06PM +0200, edgar.igles...@gmail.com wrote: > From: "Edgar E. Iglesias" > > If the host lacks support for SOCK_CLOEXEC or SOCK_NONBLOCK, > try to emulate them with fcntl() FD_CLOEXEC and O_NONBLOCK. Last time emulating CLOEXEC with fcntl was discussed, the idea

[Qemu-devel] [PATCH] linux-user: Emulate SOCK_CLOEXEC/NONBLOCK if unavailable

2013-09-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" If the host lacks support for SOCK_CLOEXEC or SOCK_NONBLOCK, try to emulate them with fcntl() FD_CLOEXEC and O_NONBLOCK. Signed-off-by: Edgar E. Iglesias --- linux-user/syscall.c | 48 +--- 1 file changed, 45 insertions(+)