]> git.e2factory.org Git - e2factory.git/commitdiff
attempt to shut down children
authorTobias Ulmer <tu@emlix.com>
Mon, 3 Jun 2019 17:34:15 +0000 (19:34 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 3 Jun 2019 17:34:15 +0000 (19:34 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 205980cf5553962d9a7dd21e523d6efa6b62a39e..4c04d9e1cbb6afce8b06da53993b88dbded738f4 100644 (file)
@@ -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()