Fossil SCM

Added explicit SIGINT handler for the rootful container (PID 1) case, so you can Ctrl-C it when "run -it".

wyoung 2023-05-06 20:21 trunk
Commit a0b0d8f99874374101783cf510b29984fe856e5947010ecc96ee437f20a4cf85
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -3356,10 +3356,11 @@
33563356
** This has to happen ahead of the other signal() calls below.
33573357
** They apply after the HTTP hit is handled, but this one needs
33583358
** to be registered while we're waiting for that to occur.
33593359
**/
33603360
signal(SIGTERM, fossil_exit);
3361
+ signal(SIGINT, fossil_exit);
33613362
}
33623363
#endif /* !WIN32 */
33633364
33643365
/* Start up an HTTP server
33653366
*/
33663367
--- 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

Keyboard Shortcuts

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