From: Richard Coleman <coleman@math.gatech.edu>
To: carlos@snfep1.if.usp.br, hzoli@cs.elte.hu, brian@nds.com
Cc: zsh-workers@math.gatech.edu
Subject: workaround for rsh problem
Date: Wed, 18 Oct 1995 00:00:29 -0400 [thread overview]
Message-ID: <9510180400.AA23776@redwood.skiles.gatech.edu> (raw)
The following workaround for the rsh problem was in the
zsh-2.5.03 sources. It was removed in the transition from
buildzsh to autoconf. Currently this workaround is not defined
by default in the zsh baseline, so you will need to add the
RSH_BUG_WORKAROUND to the defines in the Makefile. The optimal
thing would be to check for this problem in configure, but I don't
know how that could be done. If we can determine which architectures
for which this is necessary, I'll put a note about this in the
MACHINES file.
rc
*** init.c 1995/10/06 04:08:12 1.55
--- init.c 1995/10/18 03:46:30
***************
*** 318,321 ****
{
- long ttpgrp;
static char *outbuf, *errbuf;
--- 318,325 ----
{
static char *outbuf, *errbuf;
+ long ttpgrp;
+
+ #ifdef RSH_BUG_WORKAROUND
+ int i;
+ #endif
***************
*** 333,334 ****
--- 337,347 ----
setbuffer(stderr, errbuf, BUFSIZ);
+ #endif
+
+ /* This works around a bug in some versions of in.rshd *
+ * Currently this is not defined by default. */
+ #ifdef RSH_BUG_WORKAROUND
+ if (isset('c')) {
+ for (i = 3; i < 10; i++)
+ close(i);
+ }
#endif
next reply other threads:[~1995-10-18 4:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-18 4:00 Richard Coleman [this message]
1995-10-18 16:26 ` P.Stephenson
1995-10-18 13:41 Heading, Anthony
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=9510180400.AA23776@redwood.skiles.gatech.edu \
--to=coleman@math.gatech.edu \
--cc=brian@nds.com \
--cc=carlos@snfep1.if.usp.br \
--cc=hzoli@cs.elte.hu \
--cc=zsh-workers@math.gatech.edu \
/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).