Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Extra defenses against running fossil_atexit() more than once. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
bc7683e15ab55d0062b140741cf49f3f |
| User & Date: | drh 2019-08-21 16:57:10.780 |
Context
|
2019-08-21
| ||
| 17:21 | Further improvements to the server document. ... (check-in: c2c4d3039f user: drh tags: trunk) | |
| 16:57 | Extra defenses against running fossil_atexit() more than once. ... (check-in: bc7683e15a user: drh tags: trunk) | |
| 16:55 | Fix the "shell" command so that it avoids invoking the atexit() handler more than once. ... (check-in: 07a5a2118e user: drh tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
Global g;
/*
** atexit() handler which frees up "some" of the resources
** used by fossil.
*/
static void fossil_atexit(void) {
#if USE_SEE
/*
** Zero, unlock, and free the saved database encryption key now.
*/
db_unsave_encryption_key();
#endif
#if defined(_WIN32) || defined(__BIONIC__)
| > > | 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
Global g;
/*
** atexit() handler which frees up "some" of the resources
** used by fossil.
*/
static void fossil_atexit(void) {
static int once = 0;
if( once++ ) return; /* Ensure that this routine only runs once */
#if USE_SEE
/*
** Zero, unlock, and free the saved database encryption key now.
*/
db_unsave_encryption_key();
#endif
#if defined(_WIN32) || defined(__BIONIC__)
|
| ︙ | ︙ |