retry syscall on select.select()