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.
Commit
628d63c4cfb32928340ba99364446b9250752447bbd2e6eb768d71f4688ee95e
Parent
2e308280444314c…
1 file changed
+5
-1
+5
-1
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -305,10 +305,11 @@ | ||
| 305 | 305 | */ |
| 306 | 306 | static sqlite3_uint64 backofficeProcessId(void){ |
| 307 | 307 | return (sqlite3_uint64)GETPID(); |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | +#if 0 /* Disable the backoffice timeout for now */ | |
| 310 | 311 | /* |
| 311 | 312 | ** Set an alarm to cause the process to exit after "x" seconds. This |
| 312 | 313 | ** prevents any kind of bug from keeping a backoffice process running |
| 313 | 314 | ** indefinitely. |
| 314 | 315 | */ |
| @@ -368,11 +369,14 @@ | ||
| 368 | 369 | #else |
| 369 | 370 | signal(SIGALRM, backofficeSigalrmHandler); |
| 370 | 371 | alarm(x); |
| 371 | 372 | #endif |
| 372 | 373 | } |
| 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 | |
| 374 | 378 | |
| 375 | 379 | /* |
| 376 | 380 | ** COMMAND: test-process-id |
| 377 | 381 | ** |
| 378 | 382 | ** Usage: %fossil [--sleep N] PROCESS-ID ... |
| 379 | 383 |
| --- 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 |