[PATCH 0/2] Fix a few deadlocks with musl libc

Natanael Copa ncopa at alpinelinux.org
Wed Aug 19 10:03:39 UTC 2020


Fix a couple of deadlocks due to use of async-unsafe calls (malloc/free)
after fork() and before exec(). They don't fix all theoretical problems
but at least they make libvirt usable again with musl 1.2 on Alpine Linux.

Natanael Copa (2):
  util: avoid free() when reset log after fork
  util: command: improve generic mass close of fds

 src/util/vircommand.c | 80 ++++++++++++++++++++++++++++++++-----------
 src/util/virlog.c     | 44 ++++++++++++++++++------
 src/util/virlog.h     |  1 +
 3 files changed, 95 insertions(+), 30 deletions(-)

-- 
2.28.0





More information about the libvir-list mailing list