Commit 0b0d0a0e authored by Matthias Putz's avatar Matthias Putz

--amend

parent ddbb9b5b
......@@ -425,7 +425,7 @@ def _WindowsPager(repo):
def _Main(argv):
result = 0
signal.signal(signal.SIGTERM, portable.terminateHandle())
signal.signal(signal.SIGTERM, portable.terminateHandle)
opt = optparse.OptionParser(usage="repo wrapperinfo -- ...")
opt.add_option("--repo-dir", dest="repodir",
......
......@@ -7,14 +7,16 @@ Created on 12.03.2013
import os
import platform
import subprocess
import sys
SYNC_REPO_PROGRAM = False
SUBPROCESSES = []
def terminateHandle(sig1, sig2):
def terminateHandle(signal, frame):
for cmd in SUBPROCESSES:
if cmd:
cmd.terminate()
sys.exit(0)
def stream2str(stream):
return str(stream, encoding='UTF-8')
......
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