From 560adb2065b3cc869b316a576cc591e186af7181 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 8 Jul 2017 11:06:28 +0200 Subject: [PATCH] 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 --- src/tty.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tty.c b/src/tty.c index 3277104b..aeaf0b23 100644 --- a/src/tty.c +++ b/src/tty.c @@ -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;