summaryrefslogtreecommitdiffstats
path: root/src/sig-monitor.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-01-06 10:34:12 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-01-16 22:32:25 +0100
commite9c6530ee21bb3345741044e8bf87fc6a73252e9 (patch)
treeb0f5e5991c0a9808db885faa9fc8768ee9ab22ce /src/sig-monitor.c
parentbb5dd7af3cb715e707f367ee7fd462de12c84f8e (diff)
jobs: Refactor event loop handling
This improves the arbitration of the single event loop across threads. Before introduction of using 'evenfd' there was several event loop. At the current time, there is only one. At the end, there will probably remain only one. Bug-AGL: SPEC-2089 Change-Id: Iac9db7cbe15b4c9c76e6e9a8f6e641ed2a9039e0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/sig-monitor.c')
-rw-r--r--src/sig-monitor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sig-monitor.c b/src/sig-monitor.c
index 15fe260d..9e13fa13 100644
--- a/src/sig-monitor.c
+++ b/src/sig-monitor.c
@@ -299,3 +299,8 @@ void sig_monitor(int timeout, void (*function)(int sig, void*), void *arg)
else
function(0, arg);
}
+
+void sig_monitor_dumpstack()
+{
+ return dumpstack(1, 0);
+}