1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r7431: this should fix the bug that mkaplan and I noticed which is that

BENCH-NBENCH sometimes incorrectly reports that it failed.
This commit is contained in:
Andrew Tridgell 2005-06-09 08:58:12 +00:00 committed by Gerald (Jerry) Carter
parent 43e1bd870d
commit 167c29bec6

View File

@ -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);