svn commit: r235777 - head/sys/kern
Bjoern A. Zeeb
bz at FreeBSD.org
Tue May 22 16:56:01 UTC 2012
On 22. May 2012, at 07:23 , Hartmut Brandt wrote:
> Author: harti
> Date: Tue May 22 07:23:41 2012
> New Revision: 235777
> URL: http://svn.freebsd.org/changeset/base/235777
>
> Log:
> Make dumptid non-static. It is used by libkvm to detect whether
> this is a VNET-kernel or not.
Just for clarifications - it's used to detect whether we are operating on
a crash dump or not in the vnet case.
> gcc used to put the static symbol into
> the symbol table, clang does not. This fixes the 'netstat: no namelist'
> error seen on clang+VNET systems.
>
> Modified:
> head/sys/kern/kern_shutdown.c
>
> Modified: head/sys/kern/kern_shutdown.c
> ==============================================================================
> --- head/sys/kern/kern_shutdown.c Tue May 22 07:04:23 2012 (r235776)
> +++ head/sys/kern/kern_shutdown.c Tue May 22 07:23:41 2012 (r235777)
> @@ -151,7 +151,7 @@ static struct dumperinfo dumper; /* our
>
> /* Context information for dump-debuggers. */
> static struct pcb dumppcb; /* Registers. */
> -static lwpid_t dumptid; /* Thread ID. */
> +lwpid_t dumptid; /* Thread ID. */
>
> static void poweroff_wait(void *, int);
> static void shutdown_halt(void *junk, int howto);
--
Bjoern A. Zeeb You have to have visions!
It does not matter how good you are. It matters what good you do!
More information about the svn-src-head
mailing list