core/killall.c: prevent segfault and initialize pids