Add a small helper that will check if a pid is alive by checking if the file /proc/<PID>/stat exists.