mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2026-10-22 23:02:08 +03:00
handle no USR1 signal available on platform
This commit is contained in:
1 file changed
+4
@@ -158,8 +158,12 @@ def main():
|
||||
global can_be_shutdown
|
||||
signal.signal(signal.SIGTERM, shutdown_callback)
|
||||
signal.signal(signal.SIGINT, shutdown_callback)
|
||||
try:
|
||||
signal.signal(signal.SIGUSR1, threads_dump)
|
||||
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def help_cli() -> str:
|
||||
return """Possible arguments:
|
||||
main.py discover
|
||||
|
||||
Reference in new issue
Block a user