summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorKarel Zak2012-07-11 18:15:21 +0200
committerKarel Zak2012-07-11 18:15:21 +0200
commit4459448fbd9d3e457bb2c0a104b1b963067e1de9 (patch)
tree4c8e349e8425ccc7349de15cabcc8017f6df2b92 /term-utils/agetty.c
parentbuild-sys: add missing files (diff)
downloadkernel-qcow2-util-linux-4459448fbd9d3e457bb2c0a104b1b963067e1de9.tar.gz
kernel-qcow2-util-linux-4459448fbd9d3e457bb2c0a104b1b963067e1de9.tar.xz
kernel-qcow2-util-linux-4459448fbd9d3e457bb2c0a104b1b963067e1de9.zip
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 <bengen@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 5c445df5b..b2cc24cca 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);