gdbstub: Use qemu_set_cloexec()
commitf5bdd781316d2ba140323cb98392e44cac54017d
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 14 May 2018 17:30:43 +0000 (14 18:30 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 20 May 2018 05:55:54 +0000 (20 08:55 +0300)
treeca78244d68e2b82b637c30fb9023b1a39b896e66
parentd29eb678bcfbb2fbf4b79423797253ee02f5c6cf
gdbstub: Use qemu_set_cloexec()

Use the utility routine qemu_set_cloexec() rather than
manually calling fcntl(). This lets us drop the #ifndef _WIN32
guards and also means Coverity doesn't complain that we're
ignoring the fcntl error return (CID 1005665, CID 1005667).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
gdbstub.c