From a24fc941a61081e4453909af5d135a1527842655 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 29 Mar 2021 22:23:34 +0200 Subject: [PATCH] telinit: call initctl with '-b' to prevent screen size probing Signed-off-by: Joachim Wiberg --- src/finit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finit.c b/src/finit.c index 8c030f76..23d607cc 100644 --- a/src/finit.c +++ b/src/finit.c @@ -431,13 +431,13 @@ static int telinit(int argc, char *argv[]) int req = (int)argv[optind][0]; if (isdigit(req)) - return systemf("initctl runlevel %c", req); + return systemf("initctl -b runlevel %c", req); if (req == 'q' || req == 'Q') - return systemf("initctl reload"); + return systemf("initctl -b reload"); if (req == 's' || req == 'S') - return systemf("initctl runlevel %c", req); + return systemf("initctl -b runlevel %c", req); } /* XXX: add non-pid1 process monitor here