Skip to content

Commit

Permalink
Merge pull request #42 from liu0208xuan/master
Browse files Browse the repository at this point in the history
fix async run dead lock bug
  • Loading branch information
mythmgn authored Jun 29, 2020
2 parents feae306 + 805e35f commit 31a6ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cup/shell/oper.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ def _monitor(start_time, argcontent):
argcontent.cmdthd = threading.Thread(
target=_target, args=(argcontent, proc_cond))
argcontent.cmdthd.daemon = True
proc_cond.acquire()
argcontent.cmdthd.start()
start_time = int(time.mktime(datetime.datetime.now().timetuple()))
argcontent.cmdthd.join(0.1)
proc_cond.acquire()
proc_cond.wait()
proc_cond.release()
if argcontent.subproc is not None:
Expand Down

0 comments on commit 31a6ac3

Please sign in to comment.