]> git.ipfire.org Git - thirdparty/qemu.git/commit
osdep: Retry SETLK upon EINTR
authorFam Zheng <famz@redhat.com>
Tue, 26 Dec 2017 06:53:00 +0000 (14:53 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 29 Jan 2018 15:14:03 +0000 (09:14 -0600)
commitdccdaacc3d2c315f16e2723c619afcb0832e01fe
tree4b0d1407ef05e2a5ad80e63392a7a4f2ebee941a
parent5683983e99a76ced16ae12da39222d741901389d
osdep: Retry SETLK upon EINTR

We could hit lock failure if there is a signal that makes fcntl return
-1 and errno set to EINTR. In this case we should retry.

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit f86428a1f4f91a460ed585682af70d3e8c31dc06)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/osdep.c