Fossil SCM
Changed previous to call fossil_exit() instead of exit(3) so we close our databases before dying.
Commit
7c857d2233b7c197aab7a71c5558e03fb63dd380e816a6b54047fc2cdf708d02
Parent
1d09e607398c1f8…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3330,11 +3330,11 @@ | ||
| 3330 | 3330 | ** rebooting the system by nuking the init system. The only way |
| 3331 | 3331 | ** Fossil becomes that PID 1 is when it's running solo in a Linux |
| 3332 | 3332 | ** container or similar, so we do want to exit immediately, to |
| 3333 | 3333 | ** allow the container to shut down quickly. |
| 3334 | 3334 | **/ |
| 3335 | - signal(SIGTERM, exit); | |
| 3335 | + signal(SIGTERM, fossil_exit); | |
| 3336 | 3336 | } |
| 3337 | 3337 | if( g.fAnyTrace ){ |
| 3338 | 3338 | fprintf(stderr, "/***** Subprocess %d *****/\n", getpid()); |
| 3339 | 3339 | } |
| 3340 | 3340 | g.cgiOutput = 1; |
| 3341 | 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, 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 |