diff options
author | 2004-08-07 17:33:58 +0000 | |
---|---|---|
committer | 2004-08-07 17:33:58 +0000 | |
commit | 3e830b56acea12f35ae0a73331ddf2017838b7f8 (patch) | |
tree | b3c886bc70c65ce058fba6db8d3c44178d70873b | |
parent | use chroot DESTDIR ldconfig in DESTDIR case. (diff) | |
download | wireguard-openbsd-3e830b56acea12f35ae0a73331ddf2017838b7f8.tar.xz wireguard-openbsd-3e830b56acea12f35ae0a73331ddf2017838b7f8.zip |
Honor vmemoryuse resouce limit if RLIMIT_VMEM is defined.
-rw-r--r-- | lib/libc/gen/login_cap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index 240d3dd1bf7..d0a5cac39b4 100644 --- a/lib/libc/gen/login_cap.c +++ b/lib/libc/gen/login_cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.c,v 1.20 2004/05/18 02:05:52 jfb Exp $ */ +/* $OpenBSD: login_cap.c,v 1.21 2004/08/07 17:33:58 millert Exp $ */ /*- * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved. @@ -477,6 +477,9 @@ static struct { { RLIMIT_NPROC, CNUMB, "maxproc", }, { RLIMIT_NOFILE, CNUMB, "openfiles", }, { RLIMIT_CORE, CSIZE, "coredumpsize", }, +#ifdef RLIMIT_VMEM + { RLIMIT_VMEM, CSIZE, "vmemoryuse", }, +#endif { -1, 0, 0 } }; |