Hi
I need to do something similar to this and am having problems on how should i do it.. I need that if a signal SIGUSR2 is generated while i'm inside the 'for loop' the 'for loop' starts again. The pseudocode for this is something like this:
Note i don't want to use recursion at all since there are some flags that are setted on leaving and anyway....Code://milestone A setting to catch SIGUSR2 for (i=0;i<n;i++){ if SIGUSR2 generated here go back to milestone A }
Thanks