]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: remove unused code
authorKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2012 10:14:34 +0000 (12:14 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2012 10:14:34 +0000 (12:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index 05d9f8541f4ec991cc9bb3499fe91f8b88a0ad09..5935b85166ed3b7f918071a3d09d44cd86769170 100644 (file)
@@ -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)