Fossil

Diff
Login

Diff

Differences From Artifact [b977f2c1c4]:

To Artifact [c3702eb0a1]:


2467
2468
2469
2470
2471
2472
2473

2474
2475
2476

2477
2478
2479
2480
2481
2482
2483
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485







+



+







#endif
#endif

/*
** Respond to a SIGALRM by writing a message to the error log (if there
** is one) and exiting.
*/
#ifndef _WIN32
static void sigalrm_handler(int x){
  fossil_panic("TIMEOUT");
}
#endif

/*
** Arrange to timeout using SIGALRM after N seconds.  Or if N==0, cancel
** any pending timeout.
**
** Bugs:
** (1) This only works on unix systems.