Fossil SCM
Added explicit SIGINT handler for the rootful container (PID 1) case, so you can Ctrl-C it when "run -it".
Commit
a0b0d8f99874374101783cf510b29984fe856e5947010ecc96ee437f20a4cf85
Parent
260efac1daca0de…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3356,10 +3356,11 @@ | ||
| 3356 | 3356 | ** This has to happen ahead of the other signal() calls below. |
| 3357 | 3357 | ** They apply after the HTTP hit is handled, but this one needs |
| 3358 | 3358 | ** to be registered while we're waiting for that to occur. |
| 3359 | 3359 | **/ |
| 3360 | 3360 | signal(SIGTERM, fossil_exit); |
| 3361 | + signal(SIGINT, fossil_exit); | |
| 3361 | 3362 | } |
| 3362 | 3363 | #endif /* !WIN32 */ |
| 3363 | 3364 | |
| 3364 | 3365 | /* Start up an HTTP server |
| 3365 | 3366 | */ |
| 3366 | 3367 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3356,10 +3356,11 @@ | |
| 3356 | ** This has to happen ahead of the other signal() calls below. |
| 3357 | ** They apply after the HTTP hit is handled, but this one needs |
| 3358 | ** to be registered while we're waiting for that to occur. |
| 3359 | **/ |
| 3360 | signal(SIGTERM, fossil_exit); |
| 3361 | } |
| 3362 | #endif /* !WIN32 */ |
| 3363 | |
| 3364 | /* Start up an HTTP server |
| 3365 | */ |
| 3366 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3356,10 +3356,11 @@ | |
| 3356 | ** This has to happen ahead of the other signal() calls below. |
| 3357 | ** They apply after the HTTP hit is handled, but this one needs |
| 3358 | ** to be registered while we're waiting for that to occur. |
| 3359 | **/ |
| 3360 | signal(SIGTERM, fossil_exit); |
| 3361 | signal(SIGINT, fossil_exit); |
| 3362 | } |
| 3363 | #endif /* !WIN32 */ |
| 3364 | |
| 3365 | /* Start up an HTTP server |
| 3366 | */ |
| 3367 |