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:
Joachim Nilsson
2017-07-08 11:06:28 +02:00
parent 6676d4b50c
commit 560adb2065
+1 -5
View File
@@ -254,7 +254,6 @@ int tty_fallback(pid_t lost)
#ifdef FALLBACK_SHELL
if (lost == 1) {
if (fallback) {
_d("Stopping fallback shell");
kill(fallback, SIGKILL);
fallback = 0;
}
@@ -262,12 +261,9 @@ int tty_fallback(pid_t lost)
return 0;
}
if (fallback != lost || tty_num_active()) {
_d("Not starting fallback (%d) shell, lost pid %d", fallback, lost);
if (fallback != lost || tty_num_active())
return 0;
}
_d("Starting fallback shell");
fallback = fork();
if (fallback)
return 1;