2b4ae91b02d0b3b42e2a634c4f432df6d20d3b7c,lib/gui/wrapper.py,FaceswapControl,terminate,#FaceswapControl#,254
Before Change
else:
print("Terminating Process...")
try:
self.process.terminate()
self.process.wait(timeout=10)
print("Terminated")
except TimeoutExpired:
print("Termination timed out. Killing Process...")
After Change
for child in children:
child.terminate()
_, alive = psutil.wait_procs(children, timeout=10)
if not alive:
print("Terminated")
return
print("Termination timed out. Killing Process...")
for child in alive:
child.kill()
_, alive = psutil.wait_procs(alive, timeout=10)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: dask/distributed
Commit Name: f0552f76a72bf50b2424cf061866bc0225379f50
Time: 2018-04-05
Author: mrocklin@gmail.com
File Name: distributed/nanny.py
Class Name: Nanny
Method Name: memory_monitor
Project Name: vatlab/SoS
Commit Name: cbb3aa51901124fc81d37b2c7accda59aa17a848
Time: 2019-02-17
Author: ben.bog@gmail.com
File Name: src/sos/workflow_executor.py
Class Name: ExecutionManager
Method Name: terminate