Set errno to 0 before trying to kill the other process.