diff options
author | John Michelau <w14107@motorola.com> | 2013-03-07 15:35:35 -0600 |
---|---|---|
committer | John Michelau <w14107@motorola.com> | 2013-03-11 11:44:15 -0500 |
commit | e7b6cf13f94f66ea446c95ab34040b0a577e43dc (patch) | |
tree | e0ab70f40b9dae2791fec8de3602d8bee86603c0 /opengl/tests/gl_basic/gl_basic.cpp | |
parent | bfb2aa46529ebe4889940ff2e11e00d38b04aace (diff) |
Ensure dumpstate children die
Use prctl(PR_SET_PDEATHSIG, SIGKILL) in each forked child to ensure
it dies when dumpstate dies.
This is important for two cases:
- dumpstate runs a timer for each child process. On expiration, it
sends SIGTERM to kill the process. Sometimes SIGTERM isn't enough
to kill a hung process, so the child lives on.
- When dumpstate is killed by the user before completing, outstanding
children continue to run and generate output.
Change-Id: I96e0dc918c26d56c9fee53611980ba2edd238712
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions