block indefinitely on select()