]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: make tcsetpgrp() optional
authorKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2012 16:15:21 +0000 (18:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2012 16:15:21 +0000 (18:15 +0200)
The session setup TIOCSCTTY is optional, so tcsetpgrp() that depends
on controlling terminal should be optional too.

Reported-by: Hilko Bengen <bengen@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c

index 5c445df5bd45361e09f82eecc54cec386f021ae0..b2cc24cca13a203857baceb4faeaefc75b600230 100644 (file)
@@ -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);