
Signal Handlers - Possible Solution: Flag


the flag solution needs a main loop or a similar central place to check the flag

many, but not all programs have an appropriate place

if a program spends much time outside the main loop it will react late on signals this way - get clear on the consequences


