From: Tobias Ulmer Date: Mon, 3 Jun 2019 17:34:15 +0000 (+0200) Subject: attempt to shut down children X-Git-Tag: e2factory-2.3.18rc4~10 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=99f2b117fe967d1804e182a2afe9e521814d743a;p=e2factory.git attempt to shut down children Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 205980c..4c04d9e 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1559,6 +1559,11 @@ function e2lib.callcmd_poll(...) if now - prevtime >= 10 then prevtime = now e2lib.logf(4, "e2lib.poll: 10s ping", now) + + if e2lib.signal_received() ~= "" then + -- try to shut down all children + children_send_sigint() + end end trace.on()