From 4459448fbd9d3e457bb2c0a104b1b963067e1de9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 11 Jul 2012 18:15:21 +0200 Subject: [PATCH] agetty: make tcsetpgrp() optional The session setup TIOCSCTTY is optional, so tcsetpgrp() that depends on controlling terminal should be optional too. Reported-by: Hilko Bengen Signed-off-by: Karel Zak --- term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 5c445df5bd..b2cc24cca1 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -958,7 +958,7 @@ static void open_tty(char *tty, struct termios *tp, struct options *op) } if (tcsetpgrp(STDIN_FILENO, pid)) - log_err("/dev/%s: cannot set process group: %m", tty); + log_warn("/dev/%s: cannot set process group: %m", tty); /* Get rid of the present outputs. */ close(STDOUT_FILENO); -- 2.47.3