From 4e9fc375be4019578877859e701619f7fa8aa218 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 12 May 2026 10:46:05 -0400 Subject: give a better idea of which munmap failed --- src/lib/core/multiprocessing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/core/multiprocessing.c b/src/lib/core/multiprocessing.c index 14a8ae6..11add1e 100644 --- a/src/lib/core/multiprocessing.c +++ b/src/lib/core/multiprocessing.c @@ -606,13 +606,13 @@ void mp_pool_free(struct MultiProcessingPool **pool) { } // Unmap the task array if (munmap((*pool)->task, sizeof(*(*pool)->task) * (*pool)->num_alloc + 1) < 0) { - perror("munmap"); + SYSWARN("munmap pool task failed: %s", strerror(errno)); } } // Unmap the pool if ((*pool)) { if (munmap((*pool), sizeof(*(*pool))) < 0) { - SYSWARN("munmap failed: %s", strerror(errno)); + SYSWARN("munmap pool failed: %s", strerror(errno)); } (*pool) = NULL; } -- cgit