summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2013-10-11 20:56:59 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2013-10-11 20:56:59 +0000
commit3e37533cb6e15e151f5e933963a31ee08e63e1a2 (patch)
tree8de2a3b8eb52dede3893fe84158e0be65489098b
parent41a7dcd70b12895b94aa53de7ec0de0412b77677 (diff)
downloadillumos-joyent-3e37533cb6e15e151f5e933963a31ee08e63e1a2.tar.gz
OS-2546 missing code path for incrementing fork fail kstats
-rw-r--r--usr/src/uts/common/os/fork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/fork.c b/usr/src/uts/common/os/fork.c
index da6779764f..2700778af3 100644
--- a/usr/src/uts/common/os/fork.c
+++ b/usr/src/uts/common/os/fork.c
@@ -940,8 +940,10 @@ getproc(proc_t **cpp, pid_t pid, uint_t flags)
zone_t *zone;
int rctlfail = 0;
- if (!page_mem_avail(tune.t_minarmem))
+ if (!page_mem_avail(tune.t_minarmem)) {
+ atomic_add_32(&curproc->p_zone->zone_ffnomem, 1);
return (-1);
+ }
if (zone_status_get(curproc->p_zone) >= ZONE_IS_SHUTTING_DOWN)
return (-1); /* no point in starting new processes */