diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-01-19 16:29:12 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-01-19 16:29:12 -0800 |
commit | 7cd729ec78f03485e040b13a9336ba5283d51fe9 (patch) | |
tree | f35bf4b8e72a190b7ce454f45c8efb7d338f63b3 /src/window.c | |
parent | 85547b0f0c608330f411863f688e8da61a22bb89 (diff) |
vmon: monitor vmon's PID when reaper and executor
If vmon ran a command as its child and was told to be the reaper,
we probably want to see any inherited orphans vmon becomes
responsible for reaping in the graph.
The simplest robust way to achieve this is to monitor vmon's PID
as the root instead of the pid of the command being executed.
There's an argument to be made that this is how it should always
be done when executing a command, but for now I'm only going to
do it when being the reaper. I think there's also an argument to
be made that becoming a subreaper should also be the default when
executing a command.
Diffstat (limited to 'src/window.c')
0 files changed, 0 insertions, 0 deletions