Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: ulimit -e/-r
- X-seq: zsh-workers 22718
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: ulimit -e/-r
- Date: Fri, 15 Sep 2006 17:13:08 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
bash is using -e and -r, so..
Index: Src/Builtins/rlimits.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Builtins/rlimits.c,v
retrieving revision 1.15
diff -u -r1.15 rlimits.c
--- Src/Builtins/rlimits.c 30 May 2006 22:35:03 -0000 1.15
+++ Src/Builtins/rlimits.c 15 Sep 2006 21:11:09 -0000
@@ -342,6 +342,18 @@
printf("-N %2d: threads per process ", RLIMIT_PTHREAD);
break;
# endif /* HAVE_RLIMIT_PTHREAD */
+# ifdef HAVE_RLIMIT_NICE
+ case RLIMIT_NICE:
+ if (head)
+ printf("-e: max nice ");
+ break;
+# endif /* HAVE_RLIMIT_NICE */
+# ifdef HAVE_RLIMIT_RTPRIO
+ case RLIMIT_RTPRIO
+ if (head)
+ printf("-r: max rt priority ");
+ break;
+# endif /* HAVE_RLIMIT_RTPRIO */
default:
if (head)
printf("-N %2d: ", lim);
@@ -773,6 +785,16 @@
res = RLIMIT_MSGQUEUE;
break;
# endif
+# ifdef HAVE_RLIMIT_NICE
+ case 'e':
+ res = RLIMIT_NICE;
+ break;
+# endif
+# ifdef HAVE_RLIMIT_RTPRIO
+ case 'r':
+ res = RLIMIT_RTPRIO;
+ break;
+# endif
default:
/* unrecognised limit */
zwarnnam(name, "bad option: -%c", *options);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author