Write a program to catch SIGINT and print the process ID. Then create two child processes, but have one place itself in its own process group. Describe how all three processes react to typing the interrupt character.Toexit the program, type the quit character.Does the process in its own process group exit? Explain.
What will be an ideal response?
The test program is shown in Figure25. Whenever we hit the interrupt key,the parent and the ?rst child print a message including the process ID. When we hit the quit key,the parent and the ?rst child exit. Because the second child is in its own process group, it doesn’t receive any signals. We can see that the child is still running with the ps(1) command, and kill it with the kill(1) command.
You might also like to view...
The ____ type of adjustment is a powerful adjustment option for affecting the tonal range of images.
A. Output B. Levels C. Tonal D. Value
____ is a general term used to describe software that violates a user's personal security.
A. Virus B. Spyware C. Worm D. Logic bomb
Each tool has a corresponding ____________________ key.
Fill in the blank(s) with the appropriate word(s).
A logo is a distinctive shape used to represent an organization.
Answer the following statement true (T) or false (F)