zero
zero copied to clipboard
Server crashing from running in another thread
Currently, starting server from thread different from main cause error in ZeroServer._start_server
method:
util.register_signal_term(self._sig_handler)
Removing signal registration makes everything work!
Interesting! I think that is because you are running this kind of "daemon" thread or background process and signal handlers are for the main thread usually. But I want to make sure, can you please share the error stack? And can you please share how you are trying to start in a different thread?
Need to add a test