author Colin Ian King <email address hidden> 2018-06-19 06:40:27 (GMT)
committer Colin Ian King <email address hidden> 2018-06-19 06:40:27 (GMT)
commit b72beabf372d27afc1356517e4c5fd998ef14ee1 (patch)
tree c7a268df07acb02ebd2beef7a18b755d9f884469
parent b580ecec2dbd75d4b65e98d8b6151459b4270e9c (diff)
Don't exit child sub-processes with exit() (LP: #1777564)HEADmaster
When a child sub-process in any stressor exits with exit()
then the new atexit handler traps this as an illegal return
from the stressor and throws an error report. Avoid this
by exiting all stressor child sub-processes with _exit()
to skip the atexit handler.
Also fix up some exits that should be returns in stressors.
Signed-off-by: Colin Ian King <email address hidden>
Issue was introduced with child exit sanity checking http:// kernel. ubuntu. com/git/ cking/stress- ng.git/ commit/ ?id=dce3ab05c8c ad93872995387c5 5dcf7ae31e7ca3
Fix committed: http:// kernel. ubuntu. com/git/ cking/stress- ng.git/ commit/ ?id=b72beabf372 d27afc1356517e4 c5fd998ef14ee1
author Colin Ian King <email address hidden> 2018-06-19 06:40:27 (GMT) fc1356517e4c5fd 998ef14ee1 (patch) ebd2beef7a18b75 5d9f884469 4b65e98d8b61514 59b4270e9c (diff)
committer Colin Ian King <email address hidden> 2018-06-19 06:40:27 (GMT)
commit b72beabf372d27a
tree c7a268df07acb02
parent b580ecec2dbd75d
Don't exit child sub-processes with exit() (LP: #1777564)HEADmaster
When a child sub-process in any stressor exits with exit()
then the new atexit handler traps this as an illegal return
from the stressor and throws an error report. Avoid this
by exiting all stressor child sub-processes with _exit()
to skip the atexit handler.
Also fix up some exits that should be returns in stressors.
Signed-off-by: Colin Ian King <email address hidden>