]> git.e2factory.org Git - e2factory.git/commitdiff
e2: install signal handler and dispose our subprocess
authorTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 11:03:53 +0000 (12:03 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 11:03:53 +0000 (12:03 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
global/e2.lua

index 325205903cf1e35903e61b97158ba0531d80a0d2..30d2ef199c9f5e39875968b7c488dbbe0dc4a197 100644 (file)
@@ -94,12 +94,13 @@ local function e2(arg)
     end
 
     e2lib.logf(3, "calling %s", e2call.tool)
+    e2lib.signal_install()
     rc, re = e2lib.callcmd(cmd, {}, nil, env, true)
     if not rc then
         error(re)
     end
     local sig
-    rc, re, sig = e2lib.wait(rc)
+    rc, re, sig = e2lib.wait_pid_delete(rc)
     if not rc then
         error(re)
     end