test
move FD_ZERO out of while(1)