8e09cf88cc280960c9c3f380d7cc0a9e889a9579,lib/gui/wrapper.py,FaceswapControl,terminate,#FaceswapControl#,250

Before Change


            try:
                now = time()
                if os.name == "nt":
                    os.kill(
                        self.process.pid,
                        signal.CTRL_BREAK_EVENT)  // pylint: disable=no-member
                else:
                    self.process.send_signal(signal.SIGINT)
                while True:

After Change


            try:
                now = time()
                if os.name == "nt":
                    try:
                        self.process.communicate(input="\n", timeout=60)
                    except TimeoutExpired:
                        raise ValueError("Timeout reached sending Exit Signal")
                else:
                    self.process.send_signal(signal.SIGINT)
                    while True:
                        timeelapsed = time() - now
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepfakes/faceswap
Commit Name: 8e09cf88cc280960c9c3f380d7cc0a9e889a9579
Time: 2018-12-15
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: terminate


Project Name: akkana/scripts
Commit Name: e1e3f45530006843db21dc084f2dde2725056168
Time: 2018-06-24
Author: akkana@shallowsky.com
File Name: quickbrowse.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: fd1456ac36e0a1ebfb800c9593f1540858ca7bea
Time: 2015-07-17
Author: kwilson@twopensource.com
File Name: src/python/pants/backend/core/tasks/reporting_server.py
Class Name: KillServer
Method Name: execute