Re: [Qemu-devel] [PATCH 1/2] gdbstub: Use qemu_set_cloexec()

2018-05-14 Thread Thomas Huth
On 14.05.2018 19:30, Peter Maydell wrote: > 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-

[Qemu-devel] [PATCH 1/2] gdbstub: Use qemu_set_cloexec()

2018-05-14 Thread Peter Maydell
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 --- gdbstub.c | 8 ++-- 1