diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-03-13 14:40:46 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-03-13 14:40:46 -0400 |
commit | ab7fb5944a2c5d851944fec59a86c8b7e0df77d3 (patch) | |
tree | 1dac294e8da940abafb3e390bbbad1e700caa243 /doc | |
parent | 1bdc876b790d054400240e4a4bda6d56d026cf59 (diff) |
Protect LLProcess destructor when run after APR shutdown.
A static LLProcessPtr variable won't be destroyed until after procedural code
has shut down APR. The trouble is that LLProcess's destructor unregisters
itself from APR -- and, for an autokill LLProcess, attempts to kill the child
process. All that is ill-advised after APR shutdown.
Disable use of apr_pool_note_subprocess() mechanism. This should be another
viable way of coping with static autokill LLProcessPtr variables: when the
designated APR pool is cleaned up, APR promises to kill the child process. But
whether it's an APR bug or a calling error, the present (now disabled) call in
LLProcess results in OUR process, the viewer, getting SIGTERM when it asks to
clean up the global APR pool.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions