Update pid and sock.