Skip to content

Commit 46d6cc1

Browse files
author
Jérôme Loyet
committed
bug: don't free shm_status on child cleanup
1 parent 449756e commit 46d6cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_worker_pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void fpm_worker_pool_cleanup(int which, void *arg) /* {{{ */
3333
free(wp->user);
3434
free(wp->home);
3535
free(wp);
36-
if (wp->shm_status) {
36+
if (wp->shm_status && which != FPM_CLEANUP_CHILD) {
3737
fpm_shm_free(wp->shm_status, !fpm_globals.is_child);
3838
}
3939
}

0 commit comments

Comments
 (0)