From 79fafa3c6aa574f641d634fd3e136f29ec0ee9cf Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 16 Sep 2020 15:55:20 +0300 Subject: respawn: add seperate shell utility instead of running while loops Technically, these are the same shell commands, but since they are run by a separate shell, they are easier to predict and easier to kill. --- contrib/getty.boot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/getty.boot') diff --git a/contrib/getty.boot b/contrib/getty.boot index bb5a5e3..eaf90d9 100644 --- a/contrib/getty.boot +++ b/contrib/getty.boot @@ -1,4 +1,4 @@ for getty in 1 2 3 4 5 6; do - while :; do /sbin/getty 38400 tty${getty} 2>&1 ; done & # busybox getty - while :; do /sbin/getty /dev/tty${getty} linux 2>&1 ; done & # ubase getty + respawn getty 38400 tty${getty} 2>&1 ; done & # busybox getty + respawn getty /dev/tty${getty} linux 2>&1 ; done & # ubase getty done -- cgit v1.2.3