Rename dbg->fd to dbg->sock_fd for clarity.