mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-04-14 02:27:13 +03:00
handle no USR1 signal available on platform
This commit is contained in:
parent
20cd603b23
commit
5027ef748c
6
main.py
6
main.py
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user