libevent signal problem has different signal handler registrations, and thus

needs handling in testbound, so that on a good exit, it does the exit.


git-svn-id: file:///svn/unbound/trunk@742 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-11-13 16:15:04 +00:00
parent bce5467f59
commit d7b0d86b09
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -597,7 +597,9 @@ comm_base_dispatch(struct comm_base* b)
{
struct replay_runtime* runtime = (struct replay_runtime*)b;
run_scenario(runtime);
(*runtime->sig_cb)(SIGTERM, runtime->sig_cb_arg);
if(runtime->sig_cb)
(*runtime->sig_cb)(SIGTERM, runtime->sig_cb_arg);
else exit(0); /* OK exit when LIBEVENT_SIGNAL_PROBLEM exists */
}
void