mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Early program termination only from main()
This commit is contained in:

committed by
BenBE

parent
2977414d54
commit
2ef70ad7f6
@ -174,8 +174,9 @@ const MeterClass* const Platform_meterTypes[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
void Platform_init(void) {
|
||||
bool Platform_init(void) {
|
||||
/* no platform-specific setup needed */
|
||||
return true;
|
||||
}
|
||||
|
||||
void Platform_done(void) {
|
||||
|
@ -24,6 +24,7 @@ in the source distribution for its full text.
|
||||
#include "Process.h"
|
||||
#include "ProcessLocksScreen.h"
|
||||
#include "SignalsPanel.h"
|
||||
#include "CommandLine.h"
|
||||
#include "generic/gettime.h"
|
||||
#include "generic/hostname.h"
|
||||
#include "generic/uname.h"
|
||||
@ -42,7 +43,7 @@ extern const unsigned int Platform_numberOfSignals;
|
||||
|
||||
extern const MeterClass* const Platform_meterTypes[];
|
||||
|
||||
void Platform_init(void);
|
||||
bool Platform_init(void);
|
||||
|
||||
void Platform_done(void);
|
||||
|
||||
@ -82,8 +83,8 @@ static inline void Platform_getRelease(char** string) {
|
||||
|
||||
static inline void Platform_longOptionsUsage(ATTR_UNUSED const char* name) { }
|
||||
|
||||
static inline bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) {
|
||||
return false;
|
||||
static inline CommandLineStatus Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) {
|
||||
return STATUS_ERROR_EXIT;
|
||||
}
|
||||
|
||||
static inline void Platform_gettime_realtime(struct timeval* tv, uint64_t* msec) {
|
||||
|
Reference in New Issue
Block a user