Write a program to catch all signals sent to it and print out which signal was sent. Then issue a “kill –9” command to the process. How is SIGKILL different from the other signals?

What will be an ideal response?


This program will use the signal () system call to catch the signal and the signal handler will print
out a message containing the signal information and return. When you send this program a
SIGKILL (-9), you should find that your signal handler does not get called but the program simply
terminates.

Computer Science & Information Technology

You might also like to view...

Which of the following is an invalid XML tag?

a.

b. c. d.

Computer Science & Information Technology

In the accompanying figure, Item 1 points to the ____ buttons.

A. View B. Style C. Save D. Layout

Computer Science & Information Technology

If you are only interested in accessing a single element, you should use the getElementById() method.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

_______________ involves policies to prioritize traffic based on certain rules controlling the bandwidth used by certain devices or applications.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology