2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-25 12:40:22 +00:00

Do not worry over non-existant debug socket

If the socket was not created, do not error on exit because it isn't there to be cleaned up.
This commit is contained in:
Jarrod Johnson
2016-03-15 11:15:15 -04:00
parent 1bf124494e
commit fb1e20906e

View File

@@ -134,7 +134,10 @@ def dumptrace(signalname, frame):
def doexit():
if not havefcntl:
return
os.remove('/var/run/confluent/dbg.sock')
try:
os.remove('/var/run/confluent/dbg.sock')
except OSError:
pass
pidfile = open('/var/run/confluent/pid')
pid = pidfile.read()
if pid == str(os.getpid()):