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
13 November 2007: Wouter
- remove debug print.
+ - fixup testbound exit when LIBEVENT_SIGNAL_PROBLEM exists.
12 November 2007: Wouter
- fixup signal handling where SIGTERM could be ignored if a SIGHUP
{
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