Marc-André Lureau
35f7f3fb5c
util: use fcntl() for qemu_write_pidfile() locking
Daniel Berrangé suggested to use fcntl() locks rather than lockf().
'man lockf':
On Linux, lockf() is just an interface on top of fcntl(2) locking.
Many other systems implement lockf() in this way, but note that
POSIX.1 leaves the relationship between lockf() and fcntl(2) locks
unspecified. A portable application should probably avoid mixing
calls to these interfaces.
IOW, if its just a shim around fcntl() on many systems, it is clearer
if we just use fcntl() directly, as we then know how fcntl() locks will
behave if they're on a network filesystem like NFS.
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180831145314.14736-3-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-10-02 18:47:55 +02:00
..
2018-09-26 10:46:21 +08:00
2018-09-25 15:50:15 +02:00
2018-08-15 10:12:35 +08:00
2018-09-25 15:50:15 +02:00
2018-10-02 18:47:55 +02:00
2018-10-02 18:47:55 +02:00
2018-08-27 10:51:44 +02:00
2018-10-02 18:47:55 +02:00
2018-10-02 18:47:55 +02:00
2018-08-23 18:46:25 +02:00
2018-10-02 18:47:55 +02:00
2018-10-02 18:47:55 +02:00
2018-09-25 15:50:15 +02:00
2018-09-24 17:13:07 +02:00
2018-08-23 18:46:25 +02:00
2018-09-26 08:55:54 -07:00
2018-10-02 18:47:55 +02:00
2018-09-26 10:46:21 +08:00
2018-08-24 20:26:37 +02:00