added library build mode
This commit is contained in:
26
nethogs.cpp
26
nethogs.cpp
@@ -227,32 +227,6 @@ int process_ip6 (u_char * userdata, const dp_header * /* header */, const u_char
|
||||
return false;
|
||||
}
|
||||
|
||||
void quit_cb (int /* i */)
|
||||
{
|
||||
procclean();
|
||||
if ((!tracemode) && (!DEBUG))
|
||||
exit_ui();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void forceExit(bool success, const char *msg, ...)
|
||||
{
|
||||
if ((!tracemode)&&(!DEBUG)){
|
||||
exit_ui();
|
||||
}
|
||||
|
||||
va_list argp;
|
||||
va_start(argp, msg);
|
||||
vfprintf(stderr, msg, argp);
|
||||
va_end(argp);
|
||||
std::cerr << std::endl;
|
||||
|
||||
if (success)
|
||||
exit(EXIT_SUCCESS);
|
||||
else
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
class handle {
|
||||
public:
|
||||
handle (dp_handle * m_handle, const char * m_devicename = NULL,
|
||||
|
||||
Reference in New Issue
Block a user