mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-06-07 10:53:05 +03:00
handle no USR1 signal available on platform
This commit is contained in:
parent
20cd603b23
commit
5027ef748c
4
main.py
4
main.py
@ -158,8 +158,12 @@ def main():
|
|||||||
global can_be_shutdown
|
global can_be_shutdown
|
||||||
signal.signal(signal.SIGTERM, shutdown_callback)
|
signal.signal(signal.SIGTERM, shutdown_callback)
|
||||||
signal.signal(signal.SIGINT, shutdown_callback)
|
signal.signal(signal.SIGINT, shutdown_callback)
|
||||||
|
try:
|
||||||
signal.signal(signal.SIGUSR1, threads_dump)
|
signal.signal(signal.SIGUSR1, threads_dump)
|
||||||
|
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def help_cli() -> str:
|
def help_cli() -> str:
|
||||||
return """Possible arguments:
|
return """Possible arguments:
|
||||||
main.py discover
|
main.py discover
|
||||||
|
Loading…
x
Reference in New Issue
Block a user