zsh-workers
 help / color / mirror / code / Atom feed
* patch for no rlimit
@ 1996-07-15 16:50 Wayne Davison
  0 siblings, 0 replies; only message in thread
From: Wayne Davison @ 1996-07-15 16:50 UTC (permalink / raw)
  To: zsh-workers

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---



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-07-15 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-15 16:50 patch for no rlimit Wayne Davison

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).