From 906a8eb63d01758329f3906b70ff139ca4b96d47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sat, 21 Jun 2014 20:56:57 +0200 Subject: [PATCH] Add information in README about signalling. --- README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README b/README index f1bb2fa..32d5537 100644 --- a/README +++ b/README @@ -38,3 +38,20 @@ If process creation was completed without errors, you should see following outpu [process2] Calculated: 10 characters. Sending... [process3] Fetched: 4 bytes [process3] Process2 send: 10 + +Signalling +========== + +After bootstrapping processes, you can send them signals. +Processes registers custom handlers for following ones: +- SIGUSR1 (User defined signal 1) - used for internal purposes. Signal must be + sent in pair with message queue. +- SIGTERM (Terminated) - additionaly to standard behaviour, this signal allows + releasing aquired resources and notify other processes using SIGUSR1 to do the + same. +- SIGTSTP (Stopped) - additionaly to standard behaviour, this signal allows + holding aquired resources (closes pipes for example), and notify other + processes using SIGUSR1 to do the same. +- SIGCONT (Continued) - aditionaly to standard behaviour, this signal allows + resume process working by opening closed pipes, and notify other processes + using SIGUSR1 to do the same. -- 2.30.2