##// END OF EJS Templates
chgserver: use tryunlink
Ryan McElroy -
r31545:82b3ec04 default
parent child Browse files
Show More
@@ -40,7 +40,6 b' Config'
40 40
41 41 from __future__ import absolute_import
42 42
43 import errno
44 43 import hashlib
45 44 import inspect
46 45 import os
@@ -543,11 +542,7 b' class chgunixservicehandler(object):'
543 542 # remove another server's socket file. but that's okay
544 543 # since that server will detect and exit automatically and
545 544 # the client will start a new server on demand.
546 try:
547 os.unlink(self._realaddress)
548 except OSError as exc:
549 if exc.errno != errno.ENOENT:
550 raise
545 util.tryunlink(self._realaddress)
551 546
552 547 def printbanner(self, address):
553 548 # no "listening at" message should be printed to simulate hg behavior
General Comments 0
You need to be logged in to leave comments. Login now