Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
patch for no rlimit
- X-seq: zsh-workers 1656
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: patch for no rlimit
- Date: Mon, 15 Jul 1996 09:50:55 -0700
I finally recompiled zsh on an old SCO system (which I don't use that much)
and had to #ifdef a call to setlimits() to get it to compile. I also put
an #ifdef around an unused variable in init.c to remove a warning.
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: exec.c
@@ -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;
Index: init.c
@@ -466,7 +466,9 @@
struct passwd *pswd;
struct timezone dummy_tz;
char *ptr;
+#ifdef HAVE_GETRLIMIT
int i;
+#endif
noeval = 0;
curhist = 0;
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Messages sorted by:
Reverse Date,
Date,
Thread,
Author