fix kill() fail in FreeBSD