* RE: workaround for rsh problem
@ 1995-10-18 13:41 Heading, Anthony
0 siblings, 0 replies; 3+ messages in thread
From: Heading, Anthony @ 1995-10-18 13:41 UTC (permalink / raw)
To: Richard Coleman; +Cc: zsh-workers
> The following workaround for the rsh problem was in the
> zsh-2.5.03 sources.
That fixes it. Splendid. Thanks.
Anthony
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: workaround for rsh problem
1995-10-18 4:00 Richard Coleman
@ 1995-10-18 16:26 ` P.Stephenson
0 siblings, 0 replies; 3+ messages in thread
From: P.Stephenson @ 1995-10-18 16:26 UTC (permalink / raw)
To: Zsh hackers list
coleman@math.gatech.edu wrote:
> The following workaround for the rsh problem was in the
> zsh-2.5.03 sources.
This is is of course obvious, but you can do it by hand: I have some
code inside an rsh that does
exec <&- >$logfile 2>&1 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
and it seems to work with all shells with proper syntax.
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
^ permalink raw reply [flat|nested] 3+ messages in thread
* workaround for rsh problem
@ 1995-10-18 4:00 Richard Coleman
1995-10-18 16:26 ` P.Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Richard Coleman @ 1995-10-18 4:00 UTC (permalink / raw)
To: carlos, hzoli, brian; +Cc: zsh-workers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-10-18 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-10-18 13:41 workaround for rsh problem Heading, Anthony
-- strict thread matches above, loose matches on Subject: below --
1995-10-18 4:00 Richard Coleman
1995-10-18 16:26 ` P.Stephenson
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).