delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/17/08:31:48

X-Spam-Check-By: sourceware.org
Message-ID: <44E46190.70509@singnet.com.sg>
Date: Thu, 17 Aug 2006 20:31:12 +0800
From: LIM Fung-Chai <fclim AT singnet DOT com DOT sg>
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Patch for script of util-linux-2.12r-2 with zsh.
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019