This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for script of util-linux-2.12r-2 with zsh.


Hi,

Here's a patch to make util-linux-2.12r-2/misc-utils/script work with zsh (the best and the greatest :-), and possibly with csh and tcsh as well.

diff -Naur util-linux-2.12r/misc-utils/script.c util-linux-2.12r-3/misc-utils/script.c
--- util-linux-2.12r/misc-utils/script.c 2006-02-24 11:27:55.000000000 +0800
+++ util-linux-2.12r-3/misc-utils/script.c 2006-08-17 20:21:40.734375000 +0800
@@ -431,8 +431,10 @@
(void) tcsetattr(slave, TCSAFLUSH, &tt);
(void) ioctl(slave, TIOCSWINSZ, (char *)&win);
#endif
+#ifdef __CYGWIN__
+ (void) login_tty (slave);
+#else
(void) setsid();
-#ifndef __CYGWIN__
(void) ioctl(slave, TIOCSCTTY, 0);
#endif
}


Regards,
LIM Fung-Chai


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]