- psql_debug.c: add forward declaration for psql_do_prepare to fix conflicting-types compile error (BUILD=debug was broken entirely) - pfs_debug.c: change pfs_debug_check_lock_order from abort to log-only; write paths legitimately take file lock before SQL and handle ordering via psql_trylock()+relock in pfs_reopen_file_for_writing — no actual deadlock risk, the check was a false positive - psignal.c/h: add psignal_register_cleanup() hook mechanism; change panic() to use _exit(1) instead of abort() so all file descriptors are closed on crash, releasing SQLite WAL POSIX advisory locks immediately and preventing ASan from hanging the process as a zombie - psql.c: register psql_panic_cleanup() hook to close the DB on panic (belt-and-suspenders alongside _exit fd cleanup) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pfs_debug.c | ||
| pfstasks_debug.c | ||
| pnetlibs_debug.c | ||
| psock_debug.c | ||
| psql_debug.c | ||
| psys_debug.c | ||