]> git.ipfire.org Git - thirdparty/qemu.git/commit - util/oslib-posix.c
util: check the return value of fcntl in qemu_set_{block, nonblock}
authorLi Qiang <liq3ea@163.com>
Sat, 15 Dec 2018 12:03:53 +0000 (04:03 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jan 2019 00:31:04 +0000 (19:31 -0500)
commitda93b82079dcb43885a84bc25b746fd15ae29dfb
treee6a7c6f32713f584ba0116b3300707961d44f502
parentb0aa77d36d9150aaa7acd8b86e4e65162939d0bf
util: check the return value of fcntl in qemu_set_{block, nonblock}

Assert that the return value is not an error. This is like commit
7e6478e7d4f for qemu_set_cloexec.

Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
util/oslib-posix.c