diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 15:02:29 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 15:09:35 +0100 |
commit | 390175c4062b414520129f9bbdf6a15cdb47d210 (patch) | |
tree | dd7b20096fcf1f3a84f4d10a1c4ddeb0d5d8f0e5 /lib/include | |
parent | 4f1b393cee89e57bea8449d5c867a27ba1940bb5 (diff) |
cleanup runsvc: merge codepaths for execution, remove cleanup code
Simply execute the last entry in the list directly instead of forking and
remove the cleanup code.
If the list is empty, we return success.
If the list only has one entry, we directly execute that. No need to make a
distinction between single entry vs list anymore.
If the list is an actual list, we run it as before but execute the last one
directly. Typically, the last one is something like a daemon preceeded by
setup code. The daemon ends up directly underneath init, without a dummy
waiting runsvc stuck in the process list.
If we always do an exec, there is no point in doing cleanup. All our mapped
memory is evicted anyway. Same if we exit appruptly because of an error.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/include')
0 files changed, 0 insertions, 0 deletions