5. Signals + Fork
Write a program repeater.c:
./repeater Number Seconds command arg1 arg2 …
It ignores SIG_INT (Ctrl+C) itself
It forks a child that constantly:
- It waits for the child to terminate, and forks another
After a Number of children are terminated one by one, it stops
Hint: see SIG_IGN and SIG_DFL constants in signal
E. g.: