prevent EAGAIN in child thread