fd1456ac36e0a1ebfb800c9593f1540858ca7bea,src/python/pants/backend/core/tasks/reporting_server.py,KillServer,execute,#KillServer#,114
Before Change
os.unlink(pidfile)
pid = int(pidstr)
os.kill(pid, signal.SIGKILL)
print("Killed server with {pid} at http://localhost:{port}".format(pid=pid, port=port),
file=sys.stderr)
except (ValueError, OSError):
pass
After Change
Kills the reporting server.
def execute(self):
server = ReportingServerManager(self.context, self.get_options())
if not server.is_alive():
logger.info("No server found.")
return
pid = server.pid
try:
logger.info("Killing server with {pid} at http://localhost:{port}"
.format(pid=pid, port=server.socket))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
Project Name: pantsbuild/pants
Commit Name: b2fbf435a7158a02c8199015e0c8a8a794c02f56
Time: 2018-10-03
Author: benjyw@gmail.com
File Name: src/python/pants/auth/basic_auth.py
Class Name: BasicAuth
Method Name: authenticate
Project Name: pantsbuild/pants
Commit Name: 6d8625611ff936bab56d15a2b36e0aba7e54612e
Time: 2017-03-30
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks2/pytest_run.py
Class Name: PytestRun
Method Name: _do_run_tests