mirror of
https://github.com/pygos/init.git
synced 2024-12-22 07:10:49 +01:00
David Oberhollenzer
390175c406
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> |
||
---|---|---|
.. | ||
runsvc | ||
service | ||
killall5.c | ||
Makemodule.am | ||
shutdown.8 | ||
shutdown.c |