Commit Graph

1238 Commits

Author SHA1 Message Date
Michael Klein
d18e9a4895 add some security checks when running SUID root
on Darwin, htop needs to run with root privileges to display information
about other users processes. This commit makes running htop SUID root a
bit more safe.
2015-12-02 22:56:01 +01:00
Hisham Muhammad
670a2de692 Merge pull request #313 from hishamhm/sreclaimable
Update calculation of used vs. free memory.
2015-11-30 18:27:33 -02:00
Hisham Muhammad
96c929f82b Use ncurses*-config scripts bundled with ncurses.
Ensure that all necessary libs and flags are passed along,
such as adding -ltinfo when needed.

Closes #198.
2015-11-30 16:36:22 -02:00
Hisham Muhammad
a84aa2e782 Cached memory calculations, take 2.
Thanks to @OmegaPhil for discussion and reviewing.
2015-11-29 23:55:31 -02:00
Hisham Muhammad
5bc1f5ed04 Account unreclaimable slab and shmem as used memory,
reclaimable slab as cached memory.

Hopefully this presents a more truthful representation of
available vs. used memory on Linux.
See brndnmtthws/conky#82, #242, #67, #263.
2015-11-28 22:22:00 -02:00
Hisham Muhammad
d34645f8f1 Array entries have been oddly flipped here for years. 2015-11-23 03:46:43 -02:00
Hisham Muhammad
f02d8f4386 Merge pull request #303 from kaefer/desc-load-averages-meter
match load averages description to what it actually shows
2015-11-23 02:55:27 -02:00
Hisham Muhammad
aae02bbfc9 Merge pull request #304 from Sworddragon/master
Manpage update
2015-11-23 02:50:30 -02:00
Hisham Muhammad
5521094b1e Merge pull request #309 from hishamhm/travis-ci
Integrate Travis-CI
2015-11-20 15:59:54 -02:00
Hisham Muhammad
347141502b Test for unicode-enabled libncurses 2015-11-19 13:26:11 -02:00
Hisham Muhammad
0837fc5b62 travis-ci should really detect autogen.sh... 2015-11-19 13:14:20 -02:00
Hisham Muhammad
d12084b032 ChangeLog updates. 2015-11-19 13:08:23 -02:00
Hisham Muhammad
c24270be0a Test on Linux and OSX 2015-11-19 12:58:00 -02:00
Hisham Muhammad
d820d11c80 Add initial .travis.yml 2015-11-19 12:56:26 -02:00
Hisham Muhammad
4b83a82dca Minimal stub 'make test' target. 2015-11-19 12:56:01 -02:00
Hisham Muhammad
ad5d9c2542 Merge pull request #308 from SaltwaterC/darwin-swap
Add Darwin swap meter
2015-11-19 12:53:47 -02:00
SaltwaterC
8895f09880 Add Darwin swap meter. 2015-11-16 17:32:22 +00:00
Sworddragon
f097bdce8f Fixed/enhanced some entries in the manpage 2015-11-04 12:13:16 +01:00
Sworddragon
1e31b63a7e Fixed some typos 2015-11-04 12:09:22 +01:00
kaefer
33cdaf3ac0 match load averages desc. to what it actually shows 2015-11-04 11:53:17 +01:00
Hisham Muhammad
bef00a4fd9 Create directory m4 if it doesn't already exist.
(See #292.)
2015-11-03 02:21:53 -05:00
Hisham Muhammad
5e0f1788e6 Fix CRT_fatalError warning. 2015-11-02 10:22:10 -05:00
Hisham Muhammad
a7fcbba75a Add missing header, silence warning. Should fix #292. 2015-11-02 10:46:04 -05:00
Hisham Muhammad
3cfbcb72c8 Highlight moving meters in a different color. 2015-11-02 10:33:37 -05:00
Hisham Muhammad
f187be9296 Fix moving of meters 2015-11-02 10:33:22 -05:00
Hisham Muhammad
fd5dd6605a Merge pull request #299 from mmcco/master
OpenBSD port updates and error exit improvements
2015-11-02 08:46:40 -05:00
Michael McConville
cd3d2337f8 Replace all err.h function uses with CRT_fatalError(). Failing with
err.h functions corrupts the terminal when using curses.
2015-11-01 13:26:57 -05:00
Michael McConville
0fb9a8c389 Remove a debugging print 2015-11-01 13:19:01 -05:00
Hisham Muhammad
b669540e4e Merge pull request #298 from patrickmarlier/issue202
Fix a case where the usertime calculation can overflow (see issue #202)
2015-10-26 17:55:13 -04:00
Hisham Muhammad
ea8a8b2d6b Merge pull request #296 from hishamhm/darwin-cpu-average
Darwin cpu average
2015-10-24 23:29:47 -04:00
Hisham Muhammad
bd93b2e1d7 Initialize variables, silence warnings. 2015-10-24 23:28:29 -04:00
Hisham Muhammad
71190654bc Calculate CPU averages on Darwin (See #295). 2015-10-23 13:46:21 -02:00
Hisham Muhammad
9c146393a3 Improve prose a bit. 2015-10-19 17:26:53 -02:00
Hisham Muhammad
57333d8a47 Merge pull request #280 from eworm-de/man-htoprc
add hint about system configuration file
2015-10-19 17:26:22 -02:00
Hisham Muhammad
78f2933e2b Regenerate platform-dependent headers.
Closes #293.
2015-10-19 17:22:54 -02:00
Michael McConville
8673a84e5f Remove some trailing whitespace 2015-10-13 11:05:52 -04:00
Michael McConville
9f1884c28f Fix generation of openbsd/Platform.h and replace a vestigial dummy CPU utilization value 2015-10-09 14:57:01 -04:00
Hisham Muhammad
e906c0dddb Merge pull request #287 from etosan/master
PPID and JID update fix
2015-10-07 20:48:46 -03:00
Martin "eto" Misuth
93f05b459f fixed broken merge, where I forgot to check linux/Platform.c so that it matches upstream 2015-10-06 20:05:55 +02:00
Martin "eto" Misuth
23bf564d73 Fixed reparenting issue. PPID should be updated each refresh as any process can get reparented to either
PID1 or even any other PID (if there are custom reapers in the system).
Similar issue with jails, elevated process can ask kernel to attach itself into any jail at any time,
thus JID and jail name can change each refresh cycle.
2015-10-06 19:50:19 +02:00
Martin "eto" Misuth
214d0cff0d merge with 'upstream/master' 2015-10-06 19:39:12 +02:00
Martin "eto" Misuth
3ea7b34735 attempt to return to upstream/master 2015-10-06 19:39:01 +02:00
Hisham Muhammad
cc0fc3655d Add Darwin signals (same as FreeBSD)
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/signal.3.html
2015-10-06 13:03:47 -03:00
Hisham Muhammad
56193323ce let's let the user find SIGIOT if the look for it :) 2015-10-06 12:58:53 -03:00
Hisham Muhammad
ee0d602a47 Merge branch 'master' of https://github.com/hishamhm/htop 2015-10-06 12:52:48 -03:00
Hisham Muhammad
125c23ef23 Fix build in FreeBSD, and make sure SIGTERM is always the default. 2015-10-06 12:50:31 -03:00
Hisham Muhammad
384c92f7e4 Merge pull request #286 from mmcco/master
Add OpenBSD signals
2015-10-06 12:42:13 -03:00
Michael McConville
c4eb99f264 Add header file reference for OpenBSD signals 2015-10-06 11:32:40 -04:00
Michael McConville
77f12bbecd Add OpenBSD signals 2015-10-06 11:25:16 -04:00
Martin "eto" Misuth
2379835910 Added platform dependent DEFAULT_SIGNAL define, for now for:
FreeBSD
Linux
Other platforms will have it undefined for now.
2015-10-06 14:04:22 +02:00