From: Tobias Ulmer Date: Fri, 15 Feb 2019 11:03:53 +0000 (+0100) Subject: e2: install signal handler and dispose our subprocess X-Git-Tag: e2factory-2.3.18rc1~41 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=1e8be3d5ed361e7586b58037e8df33806077d51a;p=e2factory.git e2: install signal handler and dispose our subprocess Signed-off-by: Tobias Ulmer --- diff --git a/global/e2.lua b/global/e2.lua index 3252059..30d2ef1 100644 --- a/global/e2.lua +++ b/global/e2.lua @@ -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