track sockets and pids.