diff options
| -rw-r--r-- | subcmds/status.py | 1 | ||||
| -rw-r--r-- | subcmds/sync.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 69e2dbfc..75d68ebc 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
| @@ -122,6 +122,7 @@ the following meanings: | |||
| 122 | t = _threading.Thread(target=self._StatusHelper, | 122 | t = _threading.Thread(target=self._StatusHelper, |
| 123 | args=(project, counter, sem, output)) | 123 | args=(project, counter, sem, output)) |
| 124 | threads_and_output.append((t, output)) | 124 | threads_and_output.append((t, output)) |
| 125 | t.daemon = True | ||
| 125 | t.start() | 126 | t.start() |
| 126 | for (t, output) in threads_and_output: | 127 | for (t, output) in threads_and_output: |
| 127 | t.join() | 128 | t.join() |
diff --git a/subcmds/sync.py b/subcmds/sync.py index bfe146b6..595a35aa 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -261,6 +261,8 @@ later is required to fix a server side protocol bug. | |||
| 261 | pm, | 261 | pm, |
| 262 | sem, | 262 | sem, |
| 263 | err_event)) | 263 | err_event)) |
| 264 | # Ensure that Ctrl-C will not freeze the repo process. | ||
| 265 | t.daemon = True | ||
| 264 | threads.add(t) | 266 | threads.add(t) |
| 265 | t.start() | 267 | t.start() |
| 266 | 268 | ||
