libvirt/tests/commanddata
Marc-André Lureau be00118d5d util: keep the pidfile locked
Unfortunately, advisory record locking lose the lock if any fd refering
to the file is closed. There doesn't seem to be a way to preserve the
lock atomically. We could eventually retake the lock if low pidfilefd
is required.

This fixes processes being leaked, as they are not killed in
virPidFileForceCleanupPath() if the lock can be taken. Here also, we may
consider this is not good enough, as a process may leak by simply
closing the pidfilefd.

Fixes commit d146105f1e ("virCommand:
Actually acquire pidfile instead of just writing it")

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-03-25 09:04:49 +01:00
..
test2.log tests: fix typo 2017-11-20 13:22:48 +01:00
test3.log tests: remove event loop from command test 2020-02-04 14:00:44 +00:00
test4.log util: keep the pidfile locked 2020-03-25 09:04:49 +01:00
test5.log tests: fix typo 2017-11-20 13:22:48 +01:00
test6.log command: test umask support 2014-09-03 09:36:13 -06:00
test7.log tests: fix typo 2017-11-20 13:22:48 +01:00
test8.log command: test umask support 2014-09-03 09:36:13 -06:00
test9.log tests: fix typo 2017-11-20 13:22:48 +01:00
test10.log tests: fix typo 2017-11-20 13:22:48 +01:00
test11.log tests: fix typo 2017-11-20 13:22:48 +01:00
test12.log tests: fix typo 2017-11-20 13:22:48 +01:00
test13.log tests: fix typo 2017-11-20 13:22:48 +01:00
test14.log tests: fix typo 2017-11-20 13:22:48 +01:00
test15.log tests: fix typo 2017-11-20 13:22:48 +01:00
test16.log
test20.log tests: fix typo 2017-11-20 13:22:48 +01:00
test21.log tests: fix typo 2017-11-20 13:22:48 +01:00
test26.log qemu: use line breaks in command line args written to log 2018-12-17 15:02:11 +00:00
test27.log tests: remove event loop from command test 2020-02-04 14:00:44 +00:00