Dash Archive mirror
 help / color / mirror / Atom feed
* [PATCH] miscbltin: ulimitcmd: actually accept -r
@ 2022-12-16 17:20 наб
  2022-12-17 15:17 ` [PATCH 2/1] man: document ulimit -w наб
  2023-01-05  9:45 ` [PATCH] miscbltin: ulimitcmd: actually accept -r Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: наб @ 2022-12-16 17:20 UTC (permalink / raw
  To: dash

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

From: Vincent Lefevre <vincent@vinc17.net>

The original commit that added it supposes this works, but it only adds
it to the ulimit -a listing and the manual, but doesn't allow it as an
option.

Fixes: commit 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 ("[BUILTIN] Add
 support for ulimit -r")
Fixes: https://bugs.debian.org/975326
---
 src/miscbltin.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/miscbltin.c b/src/miscbltin.c
index 5ccbbcb..e553f9e 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -440,6 +440,9 @@ ulimitcmd(int argc, char **argv)
 #endif
 #ifdef RLIMIT_LOCKS
 			       "w"
+#endif
+#ifdef RLIMIT_RTPRIO
+			       "r"
 #endif
 	)) != '\0')
 		switch (optc) {
-- 
2.30.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/1] man: document ulimit -w
  2022-12-16 17:20 [PATCH] miscbltin: ulimitcmd: actually accept -r наб
@ 2022-12-17 15:17 ` наб
  2023-01-05  9:45 ` [PATCH] miscbltin: ulimitcmd: actually accept -r Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: наб @ 2022-12-17 15:17 UTC (permalink / raw
  To: dash

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

And fix the synopsis.

Fixes: commit 05c1076ba2d1a68fe7f3a5ae618f786b8898d327 ("Initial
 import.)"
Fixes: https://bugs.debian.org/850202
---
 src/dash.1 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/dash.1 b/src/dash.1
index ff02237..c9eace4 100644
--- a/src/dash.1
+++ b/src/dash.1
@@ -2121,7 +2121,7 @@ printed; for commands and tracked aliases the complete pathname of the
 command is printed.
 .It ulimit Xo
 .Op Fl H \*(Ba Fl S
-.Op Fl a \*(Ba Fl tfdscmlpnv Op Ar value
+.Op Fl a \*(Ba Fl tfdscmlpnvwr Op Ar value
 .Xc
 Inquire about or set the hard or soft limits on processes or set new
 limits.
@@ -2174,6 +2174,8 @@ show or set the limit on the number files a process can have open at once
 .It Fl v
 show or set the limit on the total virtual memory that can be
 in use by a process (in kilobytes)
+.It Fl w
+show or set the limit on the total number of locks held by a process
 .It Fl r
 show or set the limit on the real-time scheduling priority of a process
 .El
-- 
2.30.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] miscbltin: ulimitcmd: actually accept -r
  2022-12-16 17:20 [PATCH] miscbltin: ulimitcmd: actually accept -r наб
  2022-12-17 15:17 ` [PATCH 2/1] man: document ulimit -w наб
@ 2023-01-05  9:45 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2023-01-05  9:45 UTC (permalink / raw
  To: наб; +Cc: dash

наб <nabijaczleweli@nabijaczleweli.xyz> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 30 lines --]
> 
> From: Vincent Lefevre <vincent@vinc17.net>
> 
> The original commit that added it supposes this works, but it only adds
> it to the ulimit -a listing and the manual, but doesn't allow it as an
> option.
> 
> Fixes: commit 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 ("[BUILTIN] Add
> support for ulimit -r")
> Fixes: https://bugs.debian.org/975326
> ---
> src/miscbltin.c | 3 +++
> 1 file changed, 3 insertions(+)

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-05  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-16 17:20 [PATCH] miscbltin: ulimitcmd: actually accept -r наб
2022-12-17 15:17 ` [PATCH 2/1] man: document ulimit -w наб
2023-01-05  9:45 ` [PATCH] miscbltin: ulimitcmd: actually accept -r Herbert Xu

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 read-only IMAP folder(s) and NNTP newsgroup(s).