diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-12 10:46:05 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-12 10:46:05 -0400 |
| commit | 4e9fc375be4019578877859e701619f7fa8aa218 (patch) | |
| tree | dcd2493b1d632c32d4eb95b86a50b40ce3ff9762 /src/lib | |
| parent | 210bcaf0c8ccaf2ff6dfbb172d6bd3df795caea1 (diff) | |
| download | stasis-4e9fc375be4019578877859e701619f7fa8aa218.tar.gz | |
give a better idea of which munmap failed
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/core/multiprocessing.c | 4 |
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; } |
