i think replacing exit with return is a good idea. using exit does not add anything useful to begin with. it is already the case that no code should exist in programs after giving control to freeglut. this is dead code. i do not think it's worth maintaining this behavior. i expect it to do very little harm compared to what it is doing now.