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