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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!