diff mbox series

[4/4] sysvinit-inittab: exec getty from the wrapper

Message ID 20250213200212.1694055-4-ross.burton@arm.com
State New
Headers show
Series [1/4] systemd: if getty generator is disabled remove the generator, not the units | expand

Commit Message

Ross Burton Feb. 13, 2025, 8:02 p.m. UTC
Instead of forking, the start_getty wrapper can use exec to replace
itself. This results in one less process in ps per getty.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
index f5671ee53d2..f6a41428f76 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
@@ -17,4 +17,4 @@  case $(readlink -f "${getty}") in
         ;;
 esac
 
-${setsid:-} ${getty} ${options:-} -L $SPEED $DEVICE $TERM
+exec ${setsid:-} ${getty} ${options:-} -L $SPEED $DEVICE $TERM