2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Do not error if debug or usr1 handling is impossible

Windows is a limited platform, let it run regardless.
This commit is contained in:
Jarrod Johnson 2017-06-03 10:07:03 -04:00
parent 659c4e4217
commit 085a9fed37

View File

@ -204,7 +204,10 @@ def setlimits():
def run():
setlimits()
signal.signal(signal.SIGUSR1, dumptrace)
try:
signal.signal(signal.SIGUSR1, dumptrace)
except AttributeError:
pass # silly windows
if havefcntl:
_checkpidfile()
conf.init_config()
@ -231,9 +234,12 @@ def run():
os.remove('/var/run/confluent/dbg.sock')
except OSError:
pass # We are not expecting the file to exist
dbgsock = eventlet.listen("/var/run/confluent/dbg.sock",
family=socket.AF_UNIX)
eventlet.spawn_n(backdoor.backdoor_server, dbgsock)
try:
dbgsock = eventlet.listen("/var/run/confluent/dbg.sock",
family=socket.AF_UNIX)
eventlet.spawn_n(backdoor.backdoor_server, dbgsock)
except AttributeError:
pass # Windows...
os.umask(oumask)
http_bind_host, http_bind_port = _get_connector_config('http')
sock_bind_host, sock_bind_port = _get_connector_config('socket')