Fossil SCM

Disable backoffice timeouts. This is a temporary measure to avoid a horrible bug in which a timeout causes the email notification sending process to exit before recording the fact that notifications have already been sent, and thus causing the same notifications to be sent again on the next backoffice cycle, and so forth over and over and over.

drh 2018-08-08 20:56 UTC trunk
Commit 628d63c4cfb32928340ba99364446b9250752447bbd2e6eb768d71f4688ee95e
1 file changed +5 -1
--- src/backoffice.c
+++ src/backoffice.c
@@ -305,10 +305,11 @@
305305
*/
306306
static sqlite3_uint64 backofficeProcessId(void){
307307
return (sqlite3_uint64)GETPID();
308308
}
309309
310
+#if 0 /* Disable the backoffice timeout for now */
310311
/*
311312
** Set an alarm to cause the process to exit after "x" seconds. This
312313
** prevents any kind of bug from keeping a backoffice process running
313314
** indefinitely.
314315
*/
@@ -368,11 +369,14 @@
368369
#else
369370
signal(SIGALRM, backofficeSigalrmHandler);
370371
alarm(x);
371372
#endif
372373
}
373
-
374
+#else /* Real timeout (above) is disabled. In its place is the following */
375
+ /* stub routine */
376
+static void backofficeTimeout(int x){ /* no-op */ }
377
+#endif
374378
375379
/*
376380
** COMMAND: test-process-id
377381
**
378382
** Usage: %fossil [--sleep N] PROCESS-ID ...
379383
--- src/backoffice.c
+++ src/backoffice.c
@@ -305,10 +305,11 @@
305 */
306 static sqlite3_uint64 backofficeProcessId(void){
307 return (sqlite3_uint64)GETPID();
308 }
309
 
310 /*
311 ** Set an alarm to cause the process to exit after "x" seconds. This
312 ** prevents any kind of bug from keeping a backoffice process running
313 ** indefinitely.
314 */
@@ -368,11 +369,14 @@
368 #else
369 signal(SIGALRM, backofficeSigalrmHandler);
370 alarm(x);
371 #endif
372 }
373
 
 
 
374
375 /*
376 ** COMMAND: test-process-id
377 **
378 ** Usage: %fossil [--sleep N] PROCESS-ID ...
379
--- src/backoffice.c
+++ src/backoffice.c
@@ -305,10 +305,11 @@
305 */
306 static sqlite3_uint64 backofficeProcessId(void){
307 return (sqlite3_uint64)GETPID();
308 }
309
310 #if 0 /* Disable the backoffice timeout for now */
311 /*
312 ** Set an alarm to cause the process to exit after "x" seconds. This
313 ** prevents any kind of bug from keeping a backoffice process running
314 ** indefinitely.
315 */
@@ -368,11 +369,14 @@
369 #else
370 signal(SIGALRM, backofficeSigalrmHandler);
371 alarm(x);
372 #endif
373 }
374 #else /* Real timeout (above) is disabled. In its place is the following */
375 /* stub routine */
376 static void backofficeTimeout(int x){ /* no-op */ }
377 #endif
378
379 /*
380 ** COMMAND: test-process-id
381 **
382 ** Usage: %fossil [--sleep N] PROCESS-ID ...
383

Keyboard Shortcuts

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