"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-mremap.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-mremap.c  (stress-ng-0.09.52.tar.xz):stress-mremap.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 252 skipping to change at line 252
new_sz = sz = mremap_bytes & ~(page_size - 1); new_sz = sz = mremap_bytes & ~(page_size - 1);
/* Make sure this is killable by OOM killer */ /* Make sure this is killable by OOM killer */
set_oom_adjustment(args->name, true); set_oom_adjustment(args->name, true);
again: again:
if (!g_keep_stressing_flag) if (!g_keep_stressing_flag)
return EXIT_SUCCESS; return EXIT_SUCCESS;
pid = fork(); pid = fork();
if (pid < 0) { if (pid < 0) {
if (errno == EAGAIN) if ((errno == EAGAIN) || (errno == ENOMEM))
goto again; goto again;
pr_err("%s: fork failed: errno=%d: (%s)\n", pr_err("%s: fork failed: errno=%d: (%s)\n",
args->name, errno, strerror(errno)); args->name, errno, strerror(errno));
} else if (pid > 0) { } else if (pid > 0) {
int status, ret; int status, ret;
(void)setpgid(pid, g_pgrp); (void)setpgid(pid, g_pgrp);
/* Parent, wait for child */ /* Parent, wait for child */
ret = waitpid(pid, &status, 0); ret = waitpid(pid, &status, 0);
if (ret < 0) { if (ret < 0) {
 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)