]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: fix hang on standard hg commands
authorRuss Cox <rsc@golang.org>
Thu, 26 Aug 2010 21:06:36 +0000 (17:06 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 26 Aug 2010 21:06:36 +0000 (17:06 -0400)
R=gri
CC=golang-dev
https://golang.org/cl/1950045

lib/codereview/codereview.py

index 3d87f298f4ec72f331721d957b2b206e3aa90ffa..4b03b085f2cf9f739f9fc094506194c5aea9eab9 100644 (file)
@@ -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):