Skip to content

Commit

Permalink
[update] 设置daemon = True
Browse files Browse the repository at this point in the history
  • Loading branch information
jhao104 committed Nov 5, 2017
1 parent 200b279 commit 640eba9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def run():
p_list.append(p3)

for p in p_list:
p.daemon = True
p.start()
for p in p_list:
p.join()
Expand Down
1 change: 1 addition & 0 deletions Schedule/ProxyRefreshSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def main(process_num=30):
pl.append(proc)

for num in range(process_num):
pl[num].daemon = True
pl[num].start()

for num in range(process_num):
Expand Down
1 change: 1 addition & 0 deletions Schedule/ProxyValidSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __validProxy(self, threads=5):
thread_list.append(ProxyCheck())

for thread in thread_list:
thread.daemon = True
thread.start()

for thread in thread_list:
Expand Down

0 comments on commit 640eba9

Please sign in to comment.