fd1456ac36e0a1ebfb800c9593f1540858ca7bea,src/python/pants/backend/core/tasks/reporting_server.py,KillServer,execute,#KillServer#,114
Before Change
for pidfile, pid, port in info:
with open(pidfile, "r") as infile:
pidstr = infile.read()
try:
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
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}"
In pattern: SUPERPATTERN
Frequency: 4
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: jhfjhfj1/autokeras
Commit Name: b048efa4f956b80266942caea6ee8b4311e1d17a
Time: 2018-04-08
Author: jin@tamu.edu
File Name: autokeras/classifier.py
Class Name: ClassifierBase
Method Name: fit
Project Name: pantsbuild/pants
Commit Name: 84b8f96b05155e134b3bc979c53a5c3845dab689
Time: 2016-01-04
Author: kwilson@twopensource.com
File Name: src/python/pants/pantsd/process_manager.py
Class Name: ProcessManager
Method Name: purge_metadata