[go: up one dir, main page]

Skip to content

Commit

Permalink
53083: handle Haiku specific resource limit for open vnode monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Kiddle committed Sep 14, 2024
1 parent 3397653 commit 55ff6f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2024-09-14 Oliver Kiddle <opk@zsh.org>

* 53083: configure.ac, Src/Builtins/rlimits.c: handle Haiku
specific resource limit for open vnode monitors

* 53082: configure.ac: remove a couple of unused #defines

* 53081: INSTALL, configure.ac, Src/init.c, Src/options.c,
Expand Down
4 changes: 4 additions & 0 deletions Src/Builtins/rlimits.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ static const resinfo_T known_resources[] = {
{RLIMIT_TCACHE, "cachedthreads", ZLIMTYPE_NUMBER, 1,
'N', "cached threads"},
# endif
# ifdef HAVE_RLIMIT_NOVMON /* Haiku */
{RLIMIT_NOVMON, "vnodemonitors", ZLIMTYPE_NUMBER, 1,
'N', "open vnode monitors"},
# endif
};

/* resinfo[RLIMIT_XXX] points to the corresponding entry
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,7 @@ zsh_LIMIT_PRESENT(RLIMIT_NPTS)
zsh_LIMIT_PRESENT(RLIMIT_SWAP)
zsh_LIMIT_PRESENT(RLIMIT_KQUEUES)
zsh_LIMIT_PRESENT(RLIMIT_UMTXP)
zsh_LIMIT_PRESENT(RLIMIT_NOVMON)

zsh_LIMITS_EQUAL(VMEM, vmem, RSS, rss)
zsh_LIMITS_EQUAL(VMEM, vmem, AS, as)
Expand Down

0 comments on commit 55ff6f8

Please sign in to comment.