Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 3.0-pre3 fails on CRAY-YMP
- X-seq: zsh-workers 1759
- From: joda@xxxxxxxxxx (Johan Danielsson)
- To: Bruce Stephens <stephens@xxxxxxxxxxx>
- Subject: Re: 3.0-pre3 fails on CRAY-YMP
- Date: 24 Jul 1996 19:32:31 +0200
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: joda@xxxxxxxxxx's message of 24 Jul 1996 16:49:19 +0200
- References: <199607241417.QAA00042@xxxxxxxxxxxxxxxxxxxxx> <xof91c9hfkg.fsf@xxxxxxxxxxxxxxx>
- Sender: joda@xxxxxxxxxx
> > The second is that there are a couple of calls to setlimits in
> > exec.c which aren't protected with #ifdef's for getrlimits, which
> > the Cray appears to lack.
Ok, this is a new bug in pre2 or pre3. This is the quick patch:
RCS file: RCS/exec.c,v
retrieving revision 1.1
diff -u -r1.1 exec.c
--- exec.c 1996/07/24 17:16:34 1.1
+++ exec.c 1996/07/24 17:16:46
@@ -1686,8 +1686,10 @@
}
if (type == SIMPLE) {
closem(1);
+#ifdef HAVE_GETRLIMIT
if (!forked)
setlimits(NULL);
+#endif
execute((Cmdnam) hn, cflags & BINF_DASH);
} else { /* ( ... ) */
list_pipe = 0;
However, shouldn't the ifdef stuff be in zsetlimit? This way you don't
have to add ifdefs in every place you want to change limits.
> One other problem I have is that it fails to change the terminal
> settings (with stty) - it looks like they get reset back when stty
> exits (and no I don't have that option on).
This is the symptoms. I haven't had time to look into this, it is a bit
hard to debug these things without a working debugger :-)
$ stty
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
$ stty erase '^?'
$ stty
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
$ exec /bin/bash
$ stty erase
$ stty
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
$ stty erase '^?'
$ stty # note that the erase character has changed
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
$ exec ./zsh
/scratch/joda/zsh-3.0-pre3/Src>stty
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
$ stty erase '^h'
$ stty
speed 9600 baud; -parity hupcl -cread
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok iexten
/Johan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author