aboutsummaryrefslogtreecommitdiff
path: root/lib/init/init_socket_create.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 15:02:29 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 15:09:35 +0100
commit390175c4062b414520129f9bbdf6a15cdb47d210 (patch)
treedd7b20096fcf1f3a84f4d10a1c4ddeb0d5d8f0e5 /lib/init/init_socket_create.c
parent4f1b393cee89e57bea8449d5c867a27ba1940bb5 (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/init/init_socket_create.c')
0 files changed, 0 insertions, 0 deletions