fixed subprocesspow not exiting on wsl
This commit is contained in:
parent
e831a27ae3
commit
eaf61c280a
7 changed files with 25 additions and 14 deletions
|
@ -94,7 +94,7 @@ class SubprocessPOW:
|
|||
parent_conn, child_conn = Pipe()
|
||||
p = Process(target=self.do_pow, args=(child_conn,), daemon=True)
|
||||
p.start()
|
||||
p.join()
|
||||
#p.join()
|
||||
payload = None
|
||||
try:
|
||||
while True:
|
||||
|
@ -105,7 +105,7 @@ class SubprocessPOW:
|
|||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
parent_conn.send('shutdown')
|
||||
p.terminate()
|
||||
self.payload = payload
|
||||
|
||||
def do_pow(self, pipe):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue