Return the peer_pid properly to the caller