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:
@@ -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()):
|
||||
|
Reference in New Issue
Block a user