avoid quadratic behavior of GMainLoop when all fd's have the same priority