On Wed, Aug 01, 2007 at 04:16:13PM +0200, Javier Cabezas Rodríguez wrote: > void do_pin_processes(int pids[], int n, char pin) > { > int i; > for (i = 0; i < n; i++) { > printf("%d\n", i); > do_pin_process(pids[i], pin); > } > } > > When I compile the attached program with the following flags the > compiler generates a infinite loop in the function do_pin_processes (the > i variable is not incremented):
Please provide a _minimal_ and compiling example which emits this behaviour. And please use -Wall to compile the source, it contains errors. Bastian -- A princess should not be afraid -- not with a brave knight to protect her. -- McCoy, "Shore Leave", stardate 3025.3