From owner-freebsd-current Thu Mar 7 15:27:20 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA07971 for current-outgoing; Thu, 7 Mar 1996 15:27:20 -0800 (PST) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA07940 for ; Thu, 7 Mar 1996 15:27:15 -0800 (PST) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id AAA27844 for ; Fri, 8 Mar 1996 00:12:33 +0100 Received: (from wosch@localhost) by campa.panke.de (8.6.9/8.6.9) id XAA01857; Thu, 7 Mar 1996 23:34:39 +0100 Date: Thu, 7 Mar 1996 23:34:39 +0100 From: Wolfram Schneider Message-Id: <199603072234.XAA01857@campa.panke.de> To: current@freebsd.org Subject: Last pid Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@freebsd.org Precedence: bulk The variable nextpid in fork1 (/sys/kern/kern_fork.c) is a local variable. Gcc rename internally nextpid to nextpid.178 ... So it is not possible to read the value of nextpid with kvm(3) or sysctl(3). Can we make nextpid to a global variable or is there any other way to read nextpid? It would be nice if top(1) can show the last pid. Wolfram