linux-user: pass correct host flags to accept4()
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 31 Mar 2014 15:41:23 +0000 (17:41 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 1 Apr 2014 06:17:19 +0000 (09:17 +0300)
commitd25295d4efc53bf8521adf967445b8d087fe8d39
treebcf27aa257988fd4d70280f989b8e9028796b8e8
parent63678e17cf399ff81b93417fe7bee8d6ef6b6b1b
linux-user: pass correct host flags to accept4()

Flags NONBLOCK and CLOEXEC can have different values on the host and the
guest, so set correct host values before calling accept4().

This fixes several issues with accept4 system call and user-mode of QEMU.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c