Practice ยท 3 of 4
Count Signal Deliveries
CHALLENGE
Difficulty: advanced+25 XP
POSIX. A handler (given) increments a volatile sig_atomic_t counter for SIGUSR1. Implement int install_usr1_handler(void) โ install it with sigaction, return 0 on success and -1 on failure โ and int usr1_count(void) returning the counter. Handler-touches-flags-only is the whole discipline.
Press Submit to check your solution.
Back to lesson: Practice: Process Machinery Drills