aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-08-26 17:06:36 -0400
committerRuss Cox <rsc@golang.org>2010-08-26 17:06:36 -0400
commit4ae2b43ef23ef0e187a923fdf1ca61c33e7faef2 (patch)
treee3a513c51a3f19354572d13ee4201c9851ace9da /lib
parente3ac0b5d3fcc196712fb8e9db8b1147f40d12411 (diff)
downloadgo-4ae2b43ef23ef0e187a923fdf1ca61c33e7faef2.tar.xz
codereview: fix hang on standard hg commands
R=gri CC=golang-dev https://golang.org/cl/1950045
Diffstat (limited to 'lib')
-rw-r--r--lib/codereview/codereview.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py
index 3d87f298f4..4b03b085f2 100644
--- a/lib/codereview/codereview.py
+++ b/lib/codereview/codereview.py
@@ -457,7 +457,9 @@ class StatusThread(threading.Thread):
print >>sys.stderr, time.asctime(), s
def start_status_thread():
- StatusThread().start()
+ t = StatusThread()
+ t.setDaemon(True) # allowed to exit if t is still running
+ t.start()
class LoadCLThread(threading.Thread):
def __init__(self, ui, repo, dir, f, web):