summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorKarel Zak2012-06-21 12:14:34 +0200
committerKarel Zak2012-06-21 12:14:34 +0200
commit46e28f04316799d8a1984d389c807b64c3bf66a1 (patch)
tree9f74bdbf0c6b799d2cb3a4d9ec7c476d5181eb69 /term-utils
parentagetty: more robust debug() macro, check ioctl result [coverity scan] (diff)
downloadkernel-qcow2-util-linux-46e28f04316799d8a1984d389c807b64c3bf66a1.tar.gz
kernel-qcow2-util-linux-46e28f04316799d8a1984d389c807b64c3bf66a1.tar.xz
kernel-qcow2-util-linux-46e28f04316799d8a1984d389c807b64c3bf66a1.zip
script: remove unused code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/script.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/term-utils/script.c b/term-utils/script.c
index 05d9f8541..5935b8516 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -416,16 +416,6 @@ void
doshell(void) {
char *shname;
-#if 0
- int t;
-
- t = open(_PATH_DEV_TTY, O_RDWR);
- if (t >= 0) {
- ioctl(t, TIOCNOTTY, (char *)0);
- close(t);
- }
-#endif
-
getslave();
close(master);
if (close_stream(fscript) != 0)