Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Did you present all the relevant facts?

Answered: 1 week ago

Question

What is the perception that members have of the team?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago