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

--amend

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