"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-fork.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-fork.c  (stress-ng-0.12.09.tar.xz):stress-fork.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 205 skipping to change at line 205
if (!stress_get_setting("fork-max", &fork_max)) { if (!stress_get_setting("fork-max", &fork_max)) {
if (g_opt_flags & OPT_FLAGS_MAXIMIZE) if (g_opt_flags & OPT_FLAGS_MAXIMIZE)
fork_max = MAX_FORKS; fork_max = MAX_FORKS;
if (g_opt_flags & OPT_FLAGS_MINIMIZE) if (g_opt_flags & OPT_FLAGS_MINIMIZE)
fork_max = MIN_FORKS; fork_max = MIN_FORKS;
} }
stress_set_proc_state(args->name, STRESS_STATE_RUN); stress_set_proc_state(args->name, STRESS_STATE_RUN);
rc = stress_fork_fn(args, STRESS_VFORK, fork_max); rc = stress_fork_fn(args, STRESS_FORK, fork_max);
stress_set_proc_state(args->name, STRESS_STATE_DEINIT); stress_set_proc_state(args->name, STRESS_STATE_DEINIT);
return rc; return rc;
} }
/* /*
* stress_vfork() * stress_vfork()
* stress by vforking and exiting * stress by vforking and exiting
*/ */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)