summaryrefslogtreecommitdiffstats
path: root/src/sig-monitor.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-10 21:39:22 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-10 21:39:22 +0200
commitca9807f73646f536ac58c002d963a8bb8d245f5d (patch)
treebf673c996dd7cb9f31fdf70cefd0593a34caeb4a /src/sig-monitor.c
parent80900470d00c56d2fa51fb7c3da429d09e1d9a78 (diff)
Make implementation multithread
This changes makes many improvement needed for multi-threading: - json object can't be shared across threads because get/set is not protected - event are now multithread compatible Change-Id: Id44b12c68e0fa67042b8ea44939af4edfa76270a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/sig-monitor.c')
-rw-r--r--src/sig-monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sig-monitor.c b/src/sig-monitor.c
index d00f0f97..89fd4444 100644
--- a/src/sig-monitor.c
+++ b/src/sig-monitor.c
@@ -115,6 +115,8 @@ static void on_signal_error(int signum)
{
sigset_t sigset;
+ ERROR("ALERT! signal %d received: %s", signum, strsignal(signum));
+
// unlock signal to allow a new signal to come
if (error_handler != NULL) {
sigemptyset(&sigset);