Unverified Commit 704f1a8f authored by teor's avatar teor
Browse files

Make p global in the sigterm handler

The previous code worked on some python versions, but not on others.

Fixes #24216.
parent ec9ce226
......@@ -58,6 +58,7 @@ def main(argv):
plog('WARN', 'Child process returned %s' % p.returncode)
def sigterm_handler(signum, frame):
global p
if p:
p.kill()
exit()
......
Supports Markdown
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