mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00:00
Remove debug message(s) from tty_fallback()
When the TTY fallback mechanism is enabled tty_fallback() prints this annoying debug message whenever *any* is process is collected by PID 1: "Not starting fallback (%d) shell, lost pid %d", fallback, lost" This patch removes it, and a two other useless debug messages. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6676d4b50c
commit
560adb2065
1 file changed
+1
-5
@@ -254,7 +254,6 @@ int tty_fallback(pid_t lost)
|
|||||||
#ifdef FALLBACK_SHELL
|
#ifdef FALLBACK_SHELL
|
||||||
if (lost == 1) {
|
if (lost == 1) {
|
||||||
if (fallback) {
|
if (fallback) {
|
||||||
_d("Stopping fallback shell");
|
|
||||||
kill(fallback, SIGKILL);
|
kill(fallback, SIGKILL);
|
||||||
fallback = 0;
|
fallback = 0;
|
||||||
}
|
}
|
||||||
@@ -262,12 +261,9 @@ int tty_fallback(pid_t lost)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fallback != lost || tty_num_active()) {
|
if (fallback != lost || tty_num_active())
|
||||||
_d("Not starting fallback (%d) shell, lost pid %d", fallback, lost);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
_d("Starting fallback shell");
|
|
||||||
fallback = fork();
|
fallback = fork();
|
||||||
if (fallback)
|
if (fallback)
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in new issue
Block a user