"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-locka.c" between
stress-ng-0.09.52.tar.xz and stress-ng-0.09.54.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-locka.c  (stress-ng-0.09.52.tar.xz):stress-locka.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 275 skipping to change at line 275
} }
} }
again: again:
cpid = fork(); cpid = fork();
if (cpid < 0) { if (cpid < 0) {
if (!g_keep_stressing_flag) { if (!g_keep_stressing_flag) {
ret = EXIT_SUCCESS; ret = EXIT_SUCCESS;
goto tidy; goto tidy;
} }
if (errno == EAGAIN) if ((errno == EAGAIN) || (errno == ENOMEM))
goto again; goto again;
pr_fail_err("fork"); pr_fail_err("fork");
goto tidy; goto tidy;
} }
if (cpid == 0) { if (cpid == 0) {
(void)setpgid(0, g_pgrp); (void)setpgid(0, g_pgrp);
stress_parent_died_alarm(); stress_parent_died_alarm();
if (stress_locka_contention(args, fd) < 0) if (stress_locka_contention(args, fd) < 0)
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
 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)