Subject: CVS commit: src/sys/miscfs/procfs
To: None <source-changes@NetBSD.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: source-changes
Date: 05/26/2007 16:21:04
Module Name: src
Committed By: agc
Date: Sat May 26 16:21:04 UTC 2007
Modified Files:
src/sys/miscfs/procfs: procfs_linux.c
Log Message:
In /proc/<pid>/statm, avoid leaking buffer space if the attempt to get
vmspace information fails.
Return the nice value properly to userland via the /proc/<pid>/stat entry.
Use vm sizes from vmspace, rather than rusage structs, for the same
reasons as mentioned previously - see the comment in
kvm_proc.c::kvm_getproc2() about rusage values and zombie processes.
To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/sys/miscfs/procfs/procfs_linux.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.