add a option to query the pid of a socket