Question: Anyone can help me in Linux( write in C). Signals, exec. Write a program that loops forever. Each time the program receive a SIGINT it
Anyone can help me in
Linux( write in C).
Signals, exec.
Write a program that loops forever. Each time the program receive a SIGINT it should perform an ls -l. Each time the program receive a SIGHUP it should perform an ps -a. Note: you cant do an execl in the middle of an interrupt, you will have to set a flag/variable and have the main program do the exec according to which flag/variable is set.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
