call fb_shutdown_callback

14 views
Skip to first unread message

Hamish Moffatt

unread,
Sep 30, 2024, 7:00:45 AM9/30/24
to firebird-python
Hi,
Does anyone have an example of calling fb_shutdown_callback from Python, using either firebird-driver or fdb?

I have found that libfbclient is registering signal handlers for SIGINT and SIGTERM and shutting down Firebird connections when those signals occur. My app can handle those signals itself and shutdown cleanly, but I need to disable the fbclient default behaviour. 

According to https://github.com/FirebirdSQL/firebird/blob/master/doc/README.fb_shutdown I can use fb_shutdown_callback to register a confirmation handler to prevent the default shutdown from running.

Thanks,
Hamish
Reply all
Reply to author
Forward
0 new messages