1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:10:02 -07:00

codereview: fix hang on standard hg commands

R=gri
CC=golang-dev
https://golang.org/cl/1950045
This commit is contained in:
Russ Cox 2010-08-26 17:06:36 -04:00
parent e3ac0b5d3f
commit 4ae2b43ef2

View 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):