ctypes: catch system exit from C library

Martin Landa landa.martin at gmail.com
Thu Nov 3 06:07:36 EDT 2011


Hi all,

in my python application I am calling functions from a C library via
`ctypes` interface. Some fns from that C library calls `exit()` on
error. It causes that the python application crashes even without any
notification. Is it possible to catch library system exit calls from
such python application?

Thanks in advance, Martin



More information about the Python-list mailing list