zero icon indicating copy to clipboard operation
zero copied to clipboard

Server crashing from running in another thread

Open luminosoda opened this issue 1 year ago • 2 comments

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!

luminosoda avatar May 29 '23 21:05 luminosoda

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?

Ananto30 avatar May 30 '23 20:05 Ananto30

Need to add a test

Ananto30 avatar Jun 29 '24 09:06 Ananto30