mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
bin/sh: support RLIMIT_PIPEBUF
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46619
This commit is contained in:
+4
-1
@@ -483,6 +483,9 @@ static const struct limits limits[] = {
|
||||
#endif
|
||||
#ifdef RLIMIT_UMTXP
|
||||
{ "umtx shared locks", (char *)0, RLIMIT_UMTXP, 1, 'o' },
|
||||
#endif
|
||||
#ifdef RLIMIT_PIPEBUF
|
||||
{ "pipebuf", (char *)0, RLIMIT_PIPEBUF, 1024, 'y' },
|
||||
#endif
|
||||
{ (char *) 0, (char *)0, 0, 0, '\0' }
|
||||
};
|
||||
@@ -519,7 +522,7 @@ ulimitcmd(int argc __unused, char **argv __unused)
|
||||
struct rlimit limit;
|
||||
|
||||
what = 'f';
|
||||
while ((optc = nextopt("HSatfdsmcnuvlbpwko")) != '\0')
|
||||
while ((optc = nextopt("HSatfdsmcnuvlbpwkoy")) != '\0')
|
||||
switch (optc) {
|
||||
case 'H':
|
||||
how = HARD;
|
||||
|
||||
Reference in New Issue
Block a user