"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-msg.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-msg.c  (stress-ng-0.09.52.tar.xz):stress-msg.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 92 skipping to change at line 92
msgq_id = msgget(IPC_PRIVATE, S_IRUSR | S_IWUSR | IPC_CREAT | IPC_EXCL); msgq_id = msgget(IPC_PRIVATE, S_IRUSR | S_IWUSR | IPC_CREAT | IPC_EXCL);
if (msgq_id < 0) { if (msgq_id < 0) {
pr_fail_dbg("msgget"); pr_fail_dbg("msgget");
return exit_status(errno); return exit_status(errno);
} }
pr_dbg("%s: System V message queue created, id: %d\n", args->name, msgq_i d); pr_dbg("%s: System V message queue created, id: %d\n", args->name, msgq_i d);
again: again:
pid = fork(); pid = fork();
if (pid < 0) { if (pid < 0) {
if (g_keep_stressing_flag && (errno == EAGAIN)) if (g_keep_stressing_flag &&
((errno == EAGAIN) || (errno == ENOMEM)))
goto again; goto again;
pr_fail_dbg("fork"); pr_fail_dbg("fork");
return EXIT_FAILURE; return EXIT_FAILURE;
} else if (pid == 0) { } else if (pid == 0) {
(void)setpgid(0, g_pgrp); (void)setpgid(0, g_pgrp);
stress_parent_died_alarm(); stress_parent_died_alarm();
while (keep_stressing()) { while (keep_stressing()) {
msg_t msg; msg_t msg;
uint64_t i; uint64_t i;
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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