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.
This commit is contained in:
Robert James Kaes committed 2002-04-18 16:57:06 +00:00
1 parent 6a588826c1
commit 5822ec3d44
6 files changed
+95 -55

No files matched your search

+9
View File
@@ -1,3 +1,12 @@
2002-04-18 Robert James Kaes <rjkaes@flarenet.com>
* src/utils.c (rotate_log_files): Moved the log rotation code out
of the signal handler and into it's own function. Also improved
the robustness of the code. Credit to Petr Lampa for suggesting
that system calls in a signal handler is bad magic. Now the
signal handler sets a flag which is responded to inside of
thread_main_loop().
2002-04-17 Robert James Kaes <rjkaes@flarenet.com>
* configure.ac: Added test for pthread_cancel() since it doesn't