From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13092 invoked from network); 8 May 2000 11:02:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 May 2000 11:02:18 -0000 Received: (qmail 16132 invoked by alias); 8 May 2000 11:01:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11255 Received: (qmail 16093 invoked from network); 8 May 2000 11:01:56 -0000 Date: Mon, 8 May 2000 13:01:49 +0200 (MET DST) Message-Id: <200005081101.NAA22300@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Fri, 5 May 2000 20:57:34 +0400 Subject: PATCH: RE: PATCH: Re: zpty and controlling tty (and other fd's) Andrej Borsenkow wrote: > > > Note fd's 3 and 13. 3 is master side of pty (child does not need it, > > > does it?) > > > > Of course I tried to close it -- and on Linux this messed up the > > parent's (i.e. the shell's) terminal settings. Don't know how this > > came. > > ... > > I do not use Linux, but until this is cleared there - porbably under > #ifndef __LINUX (or whatever)? Of course I now can't reproduce it. So lets just put it in and see if anyone complains. Maybe I did something else wrong back then... Bye Sven Index: Src/Modules/zpty.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Modules/zpty.c,v retrieving revision 1.6 diff -u -r1.6 zpty.c --- Src/Modules/zpty.c 2000/05/05 09:12:50 1.6 +++ Src/Modules/zpty.c 2000/05/08 10:59:48 @@ -352,6 +352,7 @@ dup2(slave, 2); close(slave); + close(master); if (SHTTY != -1) close(SHTTY); -- Sven Wischnowsky wischnow@informatik.hu-berlin.de