Group :: Terminals
RPM: ttyrec
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 10_control_tty.diff
Download
Download
Description: Set slave control tty
Auther: NIIBE Yutaka <gniibe@fsij.org>
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
Last-Update: 2010-04-27
--- ttyrec-1.0.8.orig/ttyrec.c 2010-04-27 11:16:36.000000000 +0900
+++ ttyrec-1.0.8/ttyrec.c 2010-04-27 12:16:50.000000000 +0900
@@ -463,6 +463,7 @@
}
(void) tcsetattr(slave, TCSAFLUSH, &tt);
(void) ioctl(slave, TIOCSWINSZ, (char *)&win);
+ (void) ioctl(slave, TIOCSCTTY, 0);
#else /* !SVR4 */
#ifndef HAVE_openpty
line[strlen("/dev/")] = 't';