533025215d6629a1f506838fc9eeed33f2417591,lib/gui/wrapper.py,FaceswapControl,terminate,#FaceswapControl#,335
Before Change
else:
logger.debug("Sending SIGINT to process")
self.process.send_signal(signal.SIGINT)
while True:
timeelapsed = time() - now
if self.process.poll() is not None:
break
if timeelapsed > timeout:
logger.error("Timeout reached sending Exit Signal")
self.terminate_all_children()
else:
self.terminate_all_children()
@staticmethod
After Change
logger.debug("Terminating wrapper in LongRunningTask")
self.thread = LongRunningTask(target=self.terminate_in_thread,
args=(self.command, self.process))
self.thread.start()
root.after(1000, self.terminate)
elif not self.thread.complete.is_set():
logger.debug("Not finished terminating")
root.after(1000, self.terminate)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepfakes/faceswap
Commit Name: 533025215d6629a1f506838fc9eeed33f2417591
Time: 2019-06-28
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: terminate
Project Name: erikbern/ann-benchmarks
Commit Name: 845a5692cd16a152572e8818dbdecfd5d7a7764a
Time: 2017-12-09
Author: mail@erikbern.com
File Name: ann_benchmarks/runner.py
Class Name:
Method Name: run_docker
Project Name: MycroftAI/mycroft-precise
Commit Name: 5d925dae5916ea1adf684a4ea2676777a7ceba80
Time: 2017-11-28
Author: matthew3311999@gmail.com
File Name: precise/record.py
Class Name:
Method Name: main