"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-shm.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-shm.c  (stress-ng-0.12.09.tar.xz):stress-shm.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 179 skipping to change at line 179
S_IRUSR | S_IWUSR); S_IRUSR | S_IWUSR);
if (shm_fd < 0) { if (shm_fd < 0) {
ok = false; ok = false;
pr_fail("%s: shm_open %s failed, errno=%d (%s)\n" , pr_fail("%s: shm_open %s failed, errno=%d (%s)\n" ,
args->name, shm_name, errno, strerror(err no)); args->name, shm_name, errno, strerror(err no));
rc = EXIT_FAILURE; rc = EXIT_FAILURE;
goto reap; goto reap;
} }
/* Inform parent of the new shm name */ /* Inform parent of the new shm name */
(void)memset(&msg, 0, sizeof(msg));
msg.index = i; msg.index = i;
shm_name[SHM_NAME_LEN - 1] = '\0'; shm_name[SHM_NAME_LEN - 1] = '\0';
(void)shim_strlcpy(msg.shm_name, shm_name, SHM_NAME_LEN); (void)shim_strlcpy(msg.shm_name, shm_name, SHM_NAME_LEN);
if (write(fd, &msg, sizeof(msg)) < 0) { if (write(fd, &msg, sizeof(msg)) < 0) {
pr_err("%s: write failed: errno=%d: (%s)\n", pr_err("%s: write failed: errno=%d: (%s)\n",
args->name, errno, strerror(errno)); args->name, errno, strerror(errno));
rc = EXIT_FAILURE; rc = EXIT_FAILURE;
(void)close(shm_fd); (void)close(shm_fd);
goto reap; goto reap;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

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