chg: revert D7845335

Summary:
`pkill -f chgunix` is a convenient, but not a safe way to invalidate chg
servers. We're going to do the server invalidation in a better way. So just
revert the change.

Reviewed By: singhsrb

Differential Revision: D7978130

fbshipit-source-id: c13b75204ae1097ffe992b2e26d80d028022ff0d
This commit is contained in:
Jun Wu 2018-05-11 15:59:42 -07:00 committed by Facebook Github Bot
parent b955fc974e
commit cef17b6c33

View File

@ -544,9 +544,6 @@ class chgunixservicehandler(object):
return False
def newconnection(self):
# change process name early so it won't be affected by `pkill -f`
if util.safehasattr(util, 'setprocname'):
util.setprocname('chg[worker]')
self._lastactive = time.time()
def createcmdserver(self, repo, conn, fin, fout):