From 4ae2b43ef23ef0e187a923fdf1ca61c33e7faef2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 26 Aug 2010 17:06:36 -0400 Subject: [PATCH] codereview: fix hang on standard hg commands R=gri CC=golang-dev https://golang.org/cl/1950045 --- lib/codereview/codereview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 3d87f298f4e..4b03b085f2c 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):