Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 1996 23:34:39 +0100
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        current@freebsd.org
Subject:   Last pid
Message-ID:  <199603072234.XAA01857@campa.panke.de>

index | next in thread | raw e-mail


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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603072234.XAA01857>