aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorDavid Edmondson <david.edmondson@oracle.com>2021-01-13 16:44:47 +0000
committerMax Reitz <mreitz@redhat.com>2021-01-26 14:36:37 +0100
commit797e3e380534bddad32121bfc980a39cc3dd2c96 (patch)
tree8ad4204984b799edc05caa465b0446fd7095d84d /scripts/qapi/source.py
parentc701f59253c7b69f51364c04e55278e38364738e (diff)
downloadqemu-797e3e380534bddad32121bfc980a39cc3dd2c96.zip
qemu-797e3e380534bddad32121bfc980a39cc3dd2c96.tar.gz
qemu-797e3e380534bddad32121bfc980a39cc3dd2c96.tar.bz2
block: report errno when flock fcntl fails
When a call to fcntl(2) for the purpose of adding file locks fails with an error other than EAGAIN or EACCES, report the error returned by fcntl. EAGAIN or EACCES are elided as they are considered to be common failures, indicating that a conflicting lock is held by another process. No errors are elided when removing file locks. Signed-off-by: David Edmondson <david.edmondson@oracle.com> Message-Id: <20210113164447.2545785-1-david.edmondson@oracle.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions