From patchwork Fri Dec 16 17:20:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0L3QsNCx?= X-Patchwork-Id: 13075238 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 027D0C4332F for ; Fri, 16 Dec 2022 17:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231384AbiLPRU3 (ORCPT ); Fri, 16 Dec 2022 12:20:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbiLPRU1 (ORCPT ); Fri, 16 Dec 2022 12:20:27 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC3FA70B8B for ; Fri, 16 Dec 2022 09:20:24 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 88D661250 for ; Fri, 16 Dec 2022 18:20:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671211220; bh=/Gsgr4drAJKy8VWXcfvAgiHG6+nSqm408hdPlBQVS/4=; h=Date:From:To:Subject:From; b=fxx8LlPO1C6aSxZ9a5rHi8M6rmBT8agEjGMcagb7zEXsrrLoQfu1v9X1JXJIU7k6+ qd8RoM+SWKZZtkUXjIOrERgG86xHGw3u5CQBIpsOlk9CrmAkSfBkkqOdm3OuXJjbot zF2aLeboWvjw4WyEtJHdQTFlt0gFDTK8dPWBPe7TVwqc7pXActCxe0m/NJQg5Bz1SZ 240HdKOPyov7zQHKo7N3GWf/WHKwLDM9uPF/FscSBRO+wWHsk7Ys0Lu6DB935rkOyZ yMHlW/SkoUkB54XS5Eu9WvqNE2tk6hWq+0v0VZDF2yTdpx2mpZA/A+eymrGeJ2nNf2 SEYF7JsMsbWIQ== Date: Fri, 16 Dec 2022 18:20:19 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH] miscbltin: ulimitcmd: actually accept -r Message-ID: <20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20220429 Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org From: Vincent Lefevre 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) { From patchwork Sat Dec 17 15:17:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0L3QsNCx?= X-Patchwork-Id: 13075849 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 045ADC4332F for ; Sat, 17 Dec 2022 15:17:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiLQPRZ (ORCPT ); Sat, 17 Dec 2022 10:17:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiLQPRY (ORCPT ); Sat, 17 Dec 2022 10:17:24 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A70E12758 for ; Sat, 17 Dec 2022 07:17:21 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 0A08BA7C for ; Sat, 17 Dec 2022 16:17:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671290239; bh=NuUGY4K3ehATo6NkjQ8Zz+MeNIp7o7WUpzluoyyLfUE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=KEflYoWiuyLupL44irIeRIWhOlVC3XOFyarqRgf94JHzfriS6YmgzukkOe7QAUjyQ fGn7XX55C6bzqxLjeDzsX/VZDTlk4Ehp2xR+km8EnKAn2dyTjVklc2Nz4UP5IXL2Jo NR3qGUCmN7h7f+gU1foGdmuJe0GLJDxyvQGHCgqm2YqHFSLhg9iD+YiSdlRxGMdc2V 46naBAupZ892joLQBsRyZxQiU0CB4/YSMVVdugYmLi6b0a76qavAvT0PyDQoZjumJh dlocYlNl+GjYNAGss2Ps7wKf+DVNXGk+OK0DeJQDdQZWRf7FpHWgGxn2PjeoyUDyEw k14FRkVdTcsLQ== Date: Sat, 17 Dec 2022 16:17:17 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH 2/1] man: document ulimit -w Message-ID: <20221217151717.tiupxl7jrgwvwjsr@tarta.nabijaczleweli.xyz> References: <20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz> User-Agent: NeoMutt/20220429 Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org 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