From owner-cvs-all@FreeBSD.ORG Thu May 1 11:14:59 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78F1037B401; Thu, 1 May 2003 11:14:59 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5407343F93; Thu, 1 May 2003 11:14:58 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h41IEsLr001529; Thu, 1 May 2003 20:14:55 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Dag-Erling Smorgrav From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 01 May 2003 09:59:23 PDT." <200305011659.h41GxN3X070984@repoman.freebsd.org> Date: Thu, 01 May 2003 20:14:54 +0200 Message-ID: <1528.1051812894@critter.freebsd.dk> cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/procfs procfs_status.c src/sys/kern init_main.c kern_acct.c kern_fork.c kern_kthread.c kern_proc.c src/sys/nfsclient nfs_lock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 18:14:59 -0000 In message <200305011659.h41GxN3X070984@repoman.freebsd.org>, Dag-Erling Smorgr av writes: >des 2003/05/01 09:59:23 PDT > > FreeBSD src repository > > Modified files: > sys/fs/procfs procfs_status.c > sys/kern init_main.c kern_acct.c kern_fork.c > kern_kthread.c kern_proc.c > sys/nfsclient nfs_lock.c > Log: > Instead of recording the Unix time in a process when it starts, record the > uptime. Where necessary, convert it back to Unix time by adding boottime > to it. This fixes a potential problem in the accounting code, which would > compute the elapsed time incorrectly if the Unix time was stepped during > the lifetime of the process. Thankyou! -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.