Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started