From 34f48e0e095dd6e3459984a4131b433177319abb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 9 Jun 2005 08:58:12 +0000 Subject: r7431: this should fix the bug that mkaplan and I noticed which is that BENCH-NBENCH sometimes incorrectly reports that it failed. (This used to be commit 167c29bec6f28e58b5d36325b4285748a47adc58) --- source4/torture/nbench/nbench.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/torture/nbench') diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c index 8e19461b95..9b3c9cdb5a 100644 --- a/source4/torture/nbench/nbench.c +++ b/source4/torture/nbench/nbench.c @@ -198,6 +198,14 @@ BOOL torture_nbench(void) printf("Running for %d seconds with load '%s' and warmup %d secs\n", timelimit, loadfile, warmup); + /* we need to reset SIGCHLD here as the name resolution + library may have changed it. We rely on correct signals + from childs in the main torture code which reaps + children. This is why smbtorture BENCH-NBENCH was sometimes + failing */ + signal(SIGCHLD, SIG_DFL); + + signal(SIGALRM, nb_alarm); alarm(1); torture_create_procs(run_netbench, &correct); -- cgit