telinit: call initctl with '-b' to prevent screen size probing

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-03-29 22:23:34 +02:00
1 parent f307ad060b
commit a24fc941a6
1 file changed
+3 -3
+3 -3
View File
@@ -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