@ammoQ said:
while (1) {
check_something();
if (somecondition) continue;
do_something();
sleep(1);
}
But your "if" means that the program will continue looping through, with a condition check each time, even if it's done. That doesn't make any sense to me. I know this charity, see, where you can donate cpu cycles that you don't need -- maybe that would be a better use than the if inside the loop.....
Fixed your lack of quoting. --Ling