mirror of https://github.com/xzeldon/htop.git
Complete implementation of --with-proc, making htop more FreeBSD-friendly
This commit is contained in:
parent
5268ff8c67
commit
2ef1847a8b
|
@ -1,6 +1,9 @@
|
|||
|
||||
What's new in version 0.6.1
|
||||
|
||||
* Accept --with-proc=<dir> in configure, to specify
|
||||
alternative procfs locations (making htop friendlier
|
||||
to the Linux compatibility layer in FreeBSD)
|
||||
* Included icon .desktop and desktop entry
|
||||
(thanks to Peter Hyman)
|
||||
* Added a check to make sure that a root-user htop closes
|
||||
|
|
|
@ -5,6 +5,11 @@ Released under the GNU GPL, see the COPYING file
|
|||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "ProcessList.h"
|
||||
#include "Process.h"
|
||||
#include "TypedVector.h"
|
||||
|
|
11
htop.c
11
htop.c
|
@ -12,6 +12,11 @@ in the source distribution for its full text.
|
|||
#include <ctype.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "ProcessList.h"
|
||||
#include "CRT.h"
|
||||
#include "ListBox.h"
|
||||
|
@ -26,7 +31,6 @@ in the source distribution for its full text.
|
|||
#include "SignalsListBox.h"
|
||||
#include "TraceScreen.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
|
||||
//#link m
|
||||
|
@ -214,6 +218,11 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (access(PROCDIR, R_OK) != 0) {
|
||||
fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ListBox* lb;
|
||||
int quit = 0;
|
||||
int refreshTimeout = 0;
|
||||
|
|
Loading…
Reference in New Issue