Fossil SCM

Changed previous to call fossil_exit() instead of exit(3) so we close our databases before dying.

wyoung 2022-08-14 18:01 trunk
Commit 7c857d2233b7c197aab7a71c5558e03fb63dd380e816a6b54047fc2cdf708d02
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -3330,11 +3330,11 @@
33303330
** rebooting the system by nuking the init system. The only way
33313331
** Fossil becomes that PID 1 is when it's running solo in a Linux
33323332
** container or similar, so we do want to exit immediately, to
33333333
** allow the container to shut down quickly.
33343334
**/
3335
- signal(SIGTERM, exit);
3335
+ signal(SIGTERM, fossil_exit);
33363336
}
33373337
if( g.fAnyTrace ){
33383338
fprintf(stderr, "/***** Subprocess %d *****/\n", getpid());
33393339
}
33403340
g.cgiOutput = 1;
33413341
--- src/main.c
+++ src/main.c
@@ -3330,11 +3330,11 @@
3330 ** rebooting the system by nuking the init system. The only way
3331 ** Fossil becomes that PID 1 is when it's running solo in a Linux
3332 ** container or similar, so we do want to exit immediately, to
3333 ** allow the container to shut down quickly.
3334 **/
3335 signal(SIGTERM, exit);
3336 }
3337 if( g.fAnyTrace ){
3338 fprintf(stderr, "/***** Subprocess %d *****/\n", getpid());
3339 }
3340 g.cgiOutput = 1;
3341
--- src/main.c
+++ src/main.c
@@ -3330,11 +3330,11 @@
3330 ** rebooting the system by nuking the init system. The only way
3331 ** Fossil becomes that PID 1 is when it's running solo in a Linux
3332 ** container or similar, so we do want to exit immediately, to
3333 ** allow the container to shut down quickly.
3334 **/
3335 signal(SIGTERM, fossil_exit);
3336 }
3337 if( g.fAnyTrace ){
3338 fprintf(stderr, "/***** Subprocess %d *****/\n", getpid());
3339 }
3340 g.cgiOutput = 1;
3341

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button