glut error message

After the running of displayfunc, I register glutTimerFunc to check some status change after some time. In timerfunc, the timer call back function, I check some statu. If the state is changed, I use glutPostRedisplay to render the view again; if it is not changed, I use glutTimerFunc to register the same call back again.

When running, I always get following message:

freeglut (./myapp): freeglut select() error: 4

myapp is the name of my application.

Could any one give some suggestion about what is wrong?