posix signal handling #4995
Unanswered
marcinpiotrsobczyk
asked this question in
Q&A
Replies: 1 comment
-
Thank you for your issue. Give us a little time to review it. PS. You might want to check the FAQ if you haven't done so already. This is an automated reply, generated by FAQtory |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a problem while implementing posix signal handling. Application needs to perform some cleanup on exit / for example on terminal close by (x). By now its solved with installing standard python signal handler with
asyncio
library. Handler is async function so handler is in formlambda: asyncio.create_task(_shutdown_gracefully())
. But im afraid this is fragile solution which might break with future versions of textual (??). Maybe there is better solution for signal handling? It would be useful to have smth like that built in textual.Beta Was this translation helpful? Give feedback.
All reactions