Question: to be completed in the C programming language. please show all your work and provide explanations. finna learn the bottom line just says to name

 to be completed in the C programming language. please show all

to be completed in the C programming language. please show all your work and provide explanations. finna learn

the bottom line just says to name your source code file and the executable signals.zip

Write a (nearly) indestructable child. Write a program which forks a child process AFTER printing the programs PID. The child process should be printing the currect time and the current content of the executable's folder (all files) every 10 seconds. Please also print the child's PID. Prevent any termination or killing of both processes as good as you can. Check in the parent process if the child process is no more with wait(). If so, fork it again. Prevent any possible signals from terminating both processes. Gonna need: #include time_t = time (NULL); struct tm tm = *localtime (&T); //tm. tm_hour, tm.tm_min and: readdir, opendir,closedir. How we test We run your code and try to terminate and end the child process. Lastly, we will kill the parent. Therefore it would be good (for your points), that we can see the parent's PID. Submission

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!