aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-05-12 10:46:05 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-05-12 10:46:05 -0400
commit4e9fc375be4019578877859e701619f7fa8aa218 (patch)
treedcd2493b1d632c32d4eb95b86a50b40ce3ff9762
parent210bcaf0c8ccaf2ff6dfbb172d6bd3df795caea1 (diff)
downloadstasis-4e9fc375be4019578877859e701619f7fa8aa218.tar.gz
give a better idea of which munmap failed
-rw-r--r--src/lib/core/multiprocessing.c4
1 files changed, 2 insertions, 2 deletions
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;
}