Sending signals

We have typically seen cases where the kernel sends signals to a process; there is no reason a process cannot send a signal (or several) to another process. In this section, we delve into the details of sending signals to processes from a process, and ideas related to the same.

You might wonder, even if you could send a signal to another process, how would it be useful? Well, think about it: signal-sending could be used as an interprocess communication (IPC) mechanism, for one. Also, it's a way of checking for a process's existence! There are other useful cases, such as sending yourself a signal. Let's explore these further.

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.