Commit 3a747236 authored by Štěpán Kotek's avatar Štěpán Kotek

Kill dns resolver in case of error during daemon set up.

refs #3
parent 11278dd9
Pipeline #15143 passed with stage
in 5 minutes and 23 seconds
......@@ -324,7 +324,11 @@ def setup_daemons(tmpdir, prog_cfgs, template_ctx, ta_files):
setup_daemon_files(prog_cfg, template_ctx, ta_files)
daemon_proc = run_daemon(prog_cfg, daemon_env)
daemons.append({'proc': daemon_proc, 'cfg': prog_cfg})
conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY'])
try:
conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY'])
except:
daemon_proc.terminate()
raise
return daemons
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment