mirror of https://github.com/xzeldon/htop.git
Added platform dependent DEFAULT_SIGNAL define, for now for:
FreeBSD Linux Other platforms will have it undefined for now.
This commit is contained in:
parent
86417e4157
commit
2379835910
|
@ -31,6 +31,6 @@ Panel* SignalsPanel_new() {
|
|||
for(unsigned int i = 0; i < Platform_numberOfSignals; i++)
|
||||
Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number));
|
||||
Panel_setHeader(this, "Send signal:");
|
||||
Panel_setSelected(this, 16); // 16th item is SIGTERM
|
||||
Panel_setSelected(this, DEFAULT_SIGNAL);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,10 @@ in the source distribution for its full text.
|
|||
|
||||
extern ProcessFieldData Process_fields[];
|
||||
|
||||
#ifndef DEFAULT_SIGNAL
|
||||
#define DEFAULT_SIGNAL 15
|
||||
#endif
|
||||
|
||||
static SignalItem Platform_signals[] = {
|
||||
{ .name = " 0 Cancel", .number = 0 },
|
||||
{ .name = " 1 SIGHUP", .number = 1 },
|
||||
|
|
|
@ -32,6 +32,11 @@ in the source distribution for its full text.
|
|||
#include "BatteryMeter.h"
|
||||
#include "LinuxProcess.h"
|
||||
#include "SignalsPanel.h"
|
||||
|
||||
#ifndef DEFAULT_SIGNAL
|
||||
#define DEFAULT_SIGNAL 16
|
||||
#endif
|
||||
|
||||
}*/
|
||||
|
||||
ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, M_SHARE, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
|
||||
|
|
Loading…
Reference in New Issue