From d90e9f98a8a5291b78232621fdce5d7c8b92f686 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 24 Feb 2008 21:44:51 +0000 Subject: [PATCH] Don't return 0 if the count is not changed in chgproccnt()! --- sys/kern/kern_resource.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 424287253448..60044f492fb0 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_resource.c,v 1.132 2008/01/29 12:41:59 yamt Exp $ */ +/* $NetBSD: kern_resource.c,v 1.133 2008/02/24 21:44:51 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_resource.c,v 1.132 2008/01/29 12:41:59 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_resource.c,v 1.133 2008/02/24 21:44:51 christos Exp $"); #include #include @@ -1077,9 +1077,6 @@ chgproccnt(uid_t uid, int diff) { struct uidinfo *uip; - if (diff == 0) - return 0; - uip = uid_find(uid); mutex_enter(&uip->ui_lock); uip->ui_proccnt += diff;