Fossil SCM

Remove the sigalrm_handler() function on windows builds as it is never called there.

drh 2019-08-13 20:44 trunk
Commit 1d7afcdff65e55a7821f8f4c7051c7cab98f0b127cdce382c731238a8074b3cf
1 file changed +2
+2
--- src/main.c
+++ src/main.c
@@ -2469,13 +2469,15 @@
24692469
24702470
/*
24712471
** Respond to a SIGALRM by writing a message to the error log (if there
24722472
** is one) and exiting.
24732473
*/
2474
+#ifndef _WIN32
24742475
static void sigalrm_handler(int x){
24752476
fossil_panic("TIMEOUT");
24762477
}
2478
+#endif
24772479
24782480
/*
24792481
** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel
24802482
** any pending timeout.
24812483
**
24822484
--- src/main.c
+++ src/main.c
@@ -2469,13 +2469,15 @@
2469
2470 /*
2471 ** Respond to a SIGALRM by writing a message to the error log (if there
2472 ** is one) and exiting.
2473 */
 
2474 static void sigalrm_handler(int x){
2475 fossil_panic("TIMEOUT");
2476 }
 
2477
2478 /*
2479 ** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel
2480 ** any pending timeout.
2481 **
2482
--- src/main.c
+++ src/main.c
@@ -2469,13 +2469,15 @@
2469
2470 /*
2471 ** Respond to a SIGALRM by writing a message to the error log (if there
2472 ** is one) and exiting.
2473 */
2474 #ifndef _WIN32
2475 static void sigalrm_handler(int x){
2476 fossil_panic("TIMEOUT");
2477 }
2478 #endif
2479
2480 /*
2481 ** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel
2482 ** any pending timeout.
2483 **
2484

Keyboard Shortcuts

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