Commit b6e8f1f0 authored by Harald Hoyer's avatar Harald Hoyer

core/killall.c: prevent segfault and initialize pids

parent 2bfc1eda
......@@ -189,7 +189,7 @@ static int killall(int sig, Set *pids) {
void broadcast_signal(int sig, bool wait_for_exit) {
sigset_t mask, oldmask;
Set *pids;
Set *pids = NULL;
if (wait_for_exit)
pids = set_new(trivial_hash_func, trivial_compare_func);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment