> On Jan 2, 2019, at 12:22 PM, James K. Lowden <jklow...@schemamania.org> wrote:
> 
> If I don't want to use threads, can I call sqlite3_interrupt from a
> signal handler?  

It looks like you can, since all the implementation does is set a boolean flag 
inside the sqlite3 struct.

However, if SQLITE_ENABLE_API_ARMOR is defined at build time, it will also 
callsqlite3SafetyCheckOk(), and that might potentially do something that’s not 
safe to do from a signal handler (I haven’t looked into its implementation.)

—Jens
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to