Tuesday, October 25, 2011

How to send a signal to a process in Unix

To send a signal to a process you use the kill
system call. Note that you use this system call even if you're not sending
the SIGKILL signal.

Here's an example:

        kill( chpid, SIGTERM );

No comments: