diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-18 10:12:06 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-18 23:08:04 -0400 |
commit | 528b3b271ce13a5094d00f98e9b204ee0e24e795 (patch) | |
tree | 253cbf0ccb694d66a18b6e9bd1427c831d43344e | |
parent | 8b47235f7c81e04fa5efef492974509789f40273 (diff) | |
download | stasis-528b3b271ce13a5094d00f98e9b204ee0e24e795.tar.gz |
mp_pool_kill marks PIDs as unused
-rw-r--r-- | src/multiprocessing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index c784073..5478ca5 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -233,6 +233,8 @@ int mp_pool_kill(struct MultiProcessingPool *pool, int signum) { perror("clock_gettime"); exit(1); } + // We are short-circuiting the normal flow, and the process is now dead, so mark it as such + slot->pid = MP_POOL_PID_UNUSED; } } } |