use socketpair() to create fd for poll()