diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-18 16:57:06 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-18 16:57:06 +0000 |
commit | 5822ec3d44aa6ad2261d9e3ce07d589a7e6a3dcb (patch) | |
tree | 6367565772fd4a626c328e7f396113c213bd8eb3 /src/tinyproxy.h | |
parent | 6a588826c1411d3ea259a83f96f6744b20de65d6 (diff) |
Moved the log rotation code out of the signal handler and into it's own
function. The signal handler now simply sets a flag which is monitored
inside the thread_main_loop() function. The log rotation code has also
been tightened to handle any error conditions better. Credit to Petr
Lampa for suggesting that system functions inside of a signal handler is
bad magic.
Diffstat (limited to 'src/tinyproxy.h')
-rw-r--r-- | src/tinyproxy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tinyproxy.h b/src/tinyproxy.h index dfbceea..8414612 100644 --- a/src/tinyproxy.h +++ b/src/tinyproxy.h @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.h,v 1.27 2002-04-09 22:02:05 rjkaes Exp $ +/* $Id: tinyproxy.h,v 1.28 2002-04-18 16:57:06 rjkaes Exp $ * * See 'tinyproxy.c' for a detailed description. * @@ -184,7 +184,7 @@ /* Make a new type: bool_t */ typedef enum { FALSE = 0, - TRUE = (!FALSE) + TRUE = 1 } bool_t; struct config_s { @@ -218,5 +218,6 @@ struct config_s { /* Global Structures used in the program */ extern struct config_s config; +extern bool_t log_rotation_request; #endif |