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

Natanael Copa posted 2 patches 3 years, 8 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200819100341.31374-1-ncopa@alpinelinux.org
src/util/vircommand.c | 80 ++++++++++++++++++++++++++++++++-----------
src/util/virlog.c     | 44 ++++++++++++++++++------
src/util/virlog.h     |  1 +
3 files changed, 95 insertions(+), 30 deletions(-)
[PATCH 0/2] Fix a few deadlocks with musl libc
Posted by Natanael Copa 3 years, 8 months ago
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