We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3da12 commit c8257dfCopy full SHA for c8257df
src/sinol_make/util.py
@@ -5,7 +5,7 @@
5
import shutil
6
import hashlib
7
import subprocess
8
-import threading
+import multiprocessing
9
import resource
10
from typing import Union
11
@@ -140,8 +140,9 @@ def check_for_updates(current_version) -> Union[str, None]:
140
os.mkdir(data_dir)
141
142
# We check for new version asynchronously, so that it doesn't slow down the program.
143
- thread = threading.Thread(target=check_version)
144
- thread.start()
+ # If the main process exits, the check_version process will also exit.
+ process = multiprocessing.Process(target=check_version, daemon=True)
145
+ process.start()
146
version_file = data_dir.joinpath("version")
147
148
try:
0 commit comments