Question: PSU Email Problem 5 -Signals (15 points) (6 points) Select all signals below that can be either caught by a customized signal handler or blocked

 PSU Email Problem 5 -Signals (15 points) (6 points) Select all

PSU Email Problem 5 -Signals (15 points) (6 points) Select all signals below that can be either caught by a customized signal handler or blocked or ignored. 1. a. SIGTSTP b. SIGCHLD C. SIGINT d. SIGKILL e. SIGTERM f SIGSTOP 2. (9 points) Write a SIGCHLD handler so that it reaps all child processes that have terminated (either exited or terminated by a signal). The handler also reports when a child process was stopped and reports what specific signal stopped the child process. The report shouid be in this form: "Process xoox was stopped by signal yyy where xxx is the child process's pid and yyy is the signal number. See the next page fo manpage for waitpidO function for details of all necessary options and macros. It's oka to use printf0 in this problem. Your signal handler should not hang when there is no more child process to reap or report on. void sigchld_handler(int sig)

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!