| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\ |
|
|/|
| |
| |
| | |
juanfra684-openbsd-mem-used
|
| | |
|
|\ \ |
|
| | | |
|
|/| | |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | | |
Misc. OpenBSD tuneup and improvement
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Namely:
o use malloc where an xCalloc slipped in
o safeguard against an empty arg list - I don't think it's possible,
but it would be potentially exploitable
o we need to initialize the arg string to an empty string because we no
longer use strlcpy(3)
o annotate a tricky use of strlcpy(3)'s truncation
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Including:
o set *basenameEnd even in error cases (FreeBSD probably needs this)
o use kvm_openfiles(3) rather than kvm_open(3) so that we can report
errors (as with FreeBSD)
o sanify the process argument list creation by using strlcat(3)
o drop the pageSizeKb variable and use the PAGE_SIZE_KB macro directly,
as the page size can't change anyway
o clean up a few macros, add MINIMUM() and MAXIMUM() (should be
mirrored to FreeBSD)
o fix some syntax
o add some useful comments
|
|\ \ \ \
| |/ / /
|/| | | |
Improve error reporting on FreeBSD libkvm call
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
This involves switching from kvm_open(3) to kvm_openfiles(3). The only
difference is that the latter has saner error reporting (see the man
page for details). We can now fatally report the error rather than just
calling assert(3).
|
|\ \ \
| | | |
| | | | |
Add "p" to Help
|
| | | | |
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
Fix low CPU usage reporting in FreeBSD
|
| |/ / / |
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | | |
Display them properly. Not fully convinced of the "no perm" message...
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Once a process goes zombie on Linux, /proc/PID/cmdline
gets empty. So, when we detect it is a zombie we stop
reading this file.
For processes that were zombies before htop started,
there's no way to get the full name.
Closes #49.
|
| | |
| | |
| | |
| | | |
Shouldn't be needed, but I had to make this tweak to make this work again.
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also fixes the basename offset for highlighting the basename.
Closes #379.
|
| |/ / /
|/| | |
| | | |
| | | |
| | | | |
Thank you @Explorer09 for the push!
Closes #417.
|
|/ / /
| | |
| | |
| | | |
Closes #370.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread
and https://github.com/max-horvath/htop-osx/blob/e86692e869e30b0bc7264b3675d2a4014866ef46/ProcessList.c
This should be a fix for #361.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This simplifies the protocol between the platform-independent
and platform-specific parts. The platform-specific parts
were supposed to re-determine the value of process->show
on each iteration, and the Darwin subsystem wasn't doing that.
Instead of adding the code to the Darwin part, I lifted the
burden of the OS-specific of resetting process->show: now
they can choose to hide a process if they want to (e.g.
detecting kernel threads) but are not required to
(e.g. on Darwin where we're not listing threads separately (yet?)).
Fixes tree view collapsing/expanding on OSX. Closes #416.
|
| | |
| | |
| | |
| | | |
Closes #393.
|
|\ \ \
| | | |
| | | | |
(Regression) Typo in the word "prority" -> "priority"
|
|/ / / |
|
|\ \ \ |
|
| |\ \ \
| | | | |
| | | | | |
Add MEM% for processes in process list on FreeBSD.
|
| | | | | |
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
Simplify autogen.sh
|
| |/ / /
| | | |
| | | |
| | | | |
Make use of the autoreconf tool
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue noticed by GCC6 -Wmisleading-indentation.
Thanks @JIghtuse and @Explorer09!
Closes #409.
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Got a report in #397 that htop runs in NetBSD
masquerading as Linux and using a compatibility /proc
(like we used to in FreeBSD) and that it builds fine
apart from this syscall.
|
|/ /
| |
| |
| | |
(Thanks @coypoop at #397 for the heads up!)
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
htop currently expects m_size and m_resident in pages (Process.c).
According to the proc_info.h header, the values returned by libproc
are in bytes:
http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/sys/proc_info.h
Eventually we should change the htop crossplatform API to expect memory
in bytes, but this is the smaller change that should fix it.
Closes #385.
|