From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: RE: PATCH: Re: zpty and controlling tty (and other fd's)
Date: Mon, 8 May 2000 13:01:49 +0200 (MET DST) [thread overview]
Message-ID: <200005081101.NAA22300@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Fri, 5 May 2000 20:57:34 +0400
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
reply other threads:[~2000-05-08 11:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200005081101.NAA22300@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).