Skip to content
Snippets Groups Projects
Yuya Nishihara's avatar
Yuya Nishihara authored
killworkers() iterates over pids, which can be updated by SIGCHLD handler.
So we should either copy pids or prevent killworkers() from being interrupted
by SIGCHLD. I chose the latter as it is simpler and can make pids handling
more consistent.

This fixes a possible "set changed size during iteration" error at
killworkers() before cleanup().
237b2883
History
Name Last commit Last update