2b4ae91b02d0b3b42e2a634c4f432df6d20d3b7c,lib/gui/wrapper.py,FaceswapControl,terminate,#FaceswapControl#,254
Before Change
print("Killed")
else:
print("Terminating Process...")
try:
self.process.terminate()
self.process.wait(timeout=10)
print("Terminated")
except TimeoutExpired:
print("Termination timed out. Killing Process...")
self.process.kill()
print("Killed")
def set_final_status(self, returncode):
Set the status bar output based on subprocess return code
if returncode == 0 or returncode == 3221225786:
status = "Ready"
After Change
print("Killed")
else:
print("Terminating Process...")
children = psutil.Process().children(recursive=True)
for child in children:
child.terminate()
_, alive = psutil.wait_procs(children, timeout=10)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepfakes/faceswap
Commit Name: 2b4ae91b02d0b3b42e2a634c4f432df6d20d3b7c
Time: 2018-11-04
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: 71c747c0b3a1a99ab084cc206e7f5fe125f32654
Time: 2017-12-17
Author: mail@erikbern.com
File Name: ann_benchmarks/algorithms/base.py
Class Name: BaseANN
Method Name: get_index_size
Project Name: IndicoDataSolutions/finetune
Commit Name: c66273e95dd94e5553a4ea3066c60ccc566cad5d
Time: 2020-04-13
Author: madison@indico.io
File Name: tests/test_scheduler.py
Class Name: TestScheduler
Method Name: setUpClass