Commit 4b268291 authored by Per Cederqvist's avatar Per Cederqvist

Tweak testsuite timeouts. Move garb timers around so that the debug

request start_garb() can actually start the garb.  Fixes breakage in
lyskomd.0/09.exp.  Use the liboop signal adapter; avoid using
siglongjmp from signal handlers.  Ignore signals during shutdown.  Fix
errors in ths liboop signal adapter.
parent bf34de75
2003-07-13 Per Cederqvist <ceder@ceder.dyndns.org>
Tweak testsuite timeouts.
* src/server/testsuite/config/unix.exp (timeout): Increase the
timeout 2 more seconds.
Move garb timers around so that the debug request start_garb() can
actually start the garb. Fixes breakage in lyskomd.0/09.exp.
* src/server/text-garb.h (garb_text): This function is now
static.
(start_garb_thread): New function.
(stop_garb_thread): New function.
* src/server/text-garb.c (garb_timer): New static variable.
(garb_timer_running): Ditto.
(garb_text): Added static qualifier.
(garb_callback): Moved here from connections.c. Some minor
modifications made to make it compiler in its new environment.
(start_garb_thread): New function.
(stop_garb_thread): New function.
(start_garb): Restart the garb "thread".
* src/server/connections.h (set_time): Now exported.
(setup_timer): Ditto.
(server_idle): New function.
* src/server/connections.c (set_time): No longer static.
(setup_timer): Ditto.
(garb_callback): Moved to text-garb.c.
(saver_callback): The source argument is actually used.
(toploop): Moved the garb timer to text-garb.c.
(server_idle): New function.
Use the liboop signal adapter; avoid using siglongjmp from signal
handlers. Ignore signals during shutdown.
* src/server/ramkomd.c (kom_signal_adapter): New static variable.
(server_init): Use oop_signal_new, since I don't trust the way
liboop uses siglongjmp to break out of a signal handler. Ignore
the signals before registering them with liboop, to get a proper
behaviour on shutdown.
(main): Adjusted to use the signal adapter.
Fix errors in ths liboop signal adapter.
* src/libraries/liboop/signal.c (use_sa_restart): New static
variable.
(sig_on_signal): Add SA_RESTART if appropriate.
(oop_signal_new): Don't just blindly set FD_CLOEXEC and
O_NONBLOCK. Read the old settings first.
(oop_signal_use_sa_restart): New function.
* src/libraries/liboop/oop.h (oop_signal_use_sa_restart): New
function.
Updated documentation for the configuration file for "timeval"
parameters and penalty points/client scheduling.
* doc/lyskomd.texi (Parameter Types): Document "timeval".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment