Operating Systems (original) (raw)

% kill -9 -1 => Kills all your processes

System Calls that Affect the Signal Table
kill: sends signals
signal: change the response to a signal, i.e., change the entry in the signal table
fork(): creates a new copy of the signal table for the new process

Note: the calls to signal are typically all placed at the beginning of a program


Example 1: