Skip to content

Commit

Permalink
Set daemon thread by default
Browse files Browse the repository at this point in the history
  • Loading branch information
elceef committed Apr 13, 2023
1 parent 0cc165b commit 0996069
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dnstwist.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ class Scanner(threading.Thread):
def __init__(self, queue):
threading.Thread.__init__(self)
self._stop_event = threading.Event()
self.daemon = True
self.id = 0
self.jobs = queue
self.lsh_init = ''
Expand Down Expand Up @@ -1238,7 +1239,6 @@ def signal_handler(signal, frame):
sid = int.from_bytes(os.urandom(4), sys.byteorder)
for _ in range(args.threads):
worker = Scanner(jobs)
worker.daemon = True
worker.id = sid
worker.url = url
worker.option_extdns = MODULE_DNSPYTHON
Expand Down
1 change: 0 additions & 1 deletion webapp/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def scan(self):
self.jobs.put(domain)
for _ in range(self.thread_count):
worker = dnstwist.Scanner(self.jobs)
worker.daemon = True
worker.option_extdns = dnstwist.MODULE_DNSPYTHON
worker.option_geoip = dnstwist.MODULE_GEOIP
if self.nameservers:
Expand Down

0 comments on commit 0996069

Please sign in to comment.