svn commit: r187571 - projects/stress2/lib
Peter Holm
pho at FreeBSD.org
Wed Jan 21 13:24:36 PST 2009
Author: pho
Date: Wed Jan 21 21:24:36 2009
New Revision: 187571
URL: http://svn.freebsd.org/changeset/base/187571
Log:
Attempt to ensure that setup() is called before any system load.
Approved by: kib
Modified:
projects/stress2/lib/main.c
Modified: projects/stress2/lib/main.c
==============================================================================
--- projects/stress2/lib/main.c Wed Jan 21 21:01:02 2009 (r187570)
+++ projects/stress2/lib/main.c Wed Jan 21 21:24:36 2009 (r187571)
@@ -106,10 +106,9 @@ run_tests(int i)
signal(SIGHUP, run_test_handler);
signal(SIGINT, exit_handler);
atexit(callcleanup);
- arc4random_stir();
+ setup(i);
if ((strcmp(getprogname(), "run") != 0) && (op->nodelay == 0))
sleep(random_int(1,10));
- setup(i);
start = time(NULL);
while (done_testing == 0 &&
(time(NULL) - start) < op->run_time) {
More information about the svn-src-projects
mailing list