Get the pid or None.