"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-sigabrt.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-sigabrt.c  (stress-ng-0.12.09.tar.xz):stress-sigabrt.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 89 skipping to change at line 89
sigabrt_info->handler_enabled = stress_mwc1(); sigabrt_info->handler_enabled = stress_mwc1();
pid = fork(); pid = fork();
if (pid < 0) { if (pid < 0) {
if ((errno == EAGAIN) || (errno == ENOMEM)) if ((errno == EAGAIN) || (errno == ENOMEM))
continue; continue;
pr_fail("%s: fork failed: %d (%s)\n", pr_fail("%s: fork failed: %d (%s)\n",
args->name, errno, strerror(errno)); args->name, errno, strerror(errno));
return EXIT_FAILURE; return EXIT_FAILURE;
} else if (pid == 0) { } else if (pid == 0) {
int ret;
/* Randomly select death by abort or SIGABRT */ /* Randomly select death by abort or SIGABRT */
if (sigabrt_info->handler_enabled) { if (sigabrt_info->handler_enabled) {
int ret;
ret = stress_sighandler(args->name, SIGABRT, stre ss_sigabrt_handler, NULL); ret = stress_sighandler(args->name, SIGABRT, stre ss_sigabrt_handler, NULL);
(void)ret; (void)ret;
/* /*
* Aborting with a handler will call the handler, the handler will * Aborting with a handler will call the handler, the handler will
* then be disabled and a second SIGABRT will occ ur causing the * then be disabled and a second SIGABRT will occ ur causing the
* abort. * abort.
*/ */
abort(); abort();
/* Should never get here */ /* Should never get here */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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