From owner-freebsd-current Fri May 1 17:14:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA24398 for freebsd-current-outgoing; Fri, 1 May 1998 17:14:18 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA24343 for ; Fri, 1 May 1998 17:14:08 -0700 (PDT) (envelope-from pb@fasterix.frmug.org) Received: (from uucp@localhost) by frmug.org (8.9.0.Beta7/frmug-2.3/nospam) with UUCP id CAA18404 for freebsd-current@freebsd.org; Sat, 2 May 1998 02:14:05 +0200 (CEST) (envelope-from pb@fasterix.frmug.org) Received: (from pb@localhost) by fasterix.frmug.org (8.8.8/8.8.5/pb-19970302) id CAA11035 for freebsd-current@freebsd.org; Sat, 2 May 1998 02:12:59 +0200 (CEST) Message-ID: <19980502021259.A10990@fasterix.frmug.fr.net> Date: Sat, 2 May 1998 02:12:59 +0200 From: Pierre Beyssac To: freebsd-current@FreeBSD.ORG Subject: for review: minor patch to kern_exit.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.2 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd like to commit the following trivial patch, but I prefer to check with competent people first :-). Has been running fine on my system for a few days; fixes the CPU part of PR# kern/5236 (zombie processes showing in ps as using CPU and mem). The mem part seems to be gone, maybe due to other VM changes. --- kern_exit.c 1998/04/06 08:26:03 1.66 +++ kern_exit.c 1998/05/02 00:05:24 @@ -270,6 +270,8 @@ LIST_REMOVE(p, p_list); LIST_INSERT_HEAD(&zombproc, p, p_list); p->p_stat = SZOMB; + p->p_cpticks = 0; + p->p_pctcpu = 0; LIST_REMOVE(p, p_hash); -- Pierre Beyssac pb@fasterix.frmug.org pb@fasterix.freenix.org {Free,Net,Open}BSD, Linux : il y a moins bien, mais c'est plus cher Free domains: http://www.eu.org/ or mail dns-manager@EU.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message