With a unix socket (*net.UnixConn) you can get the pid from the underlying file descriptor. Is there a similar way to do this with a *PipeConn?