From: Karel Zak Date: Wed, 11 Jul 2012 16:15:21 +0000 (+0200) Subject: agetty: make tcsetpgrp() optional X-Git-Tag: v2.22-rc1~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4459448fbd9d3e457bb2c0a104b1b963067e1de9;p=thirdparty%2Futil-linux.git 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 --- 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);