There's no need for killpg(). We can use kill() instead.