AFAIK I don't have either of those options available to me. It seems the only option I have right now is to remove the fgets. Now, how can I have handle:

Code:
while (running) {
...
}
without dominating the system resources, but also having a way to break out of the loop?