syslog_daemon: Use BServer and do not connect to app_server.

axeld did all the hard work in 4bf862e3689b034d4e44cf94c5e50fe7ae05aee3
but did not actually change the instantiation to use BServer. We now
do that, and pass "false" for "initGUI" to avoid connecting to app_server,
as syslog_daemon never does anything GUI related.
This commit is contained in:
Augustin Cavalier 2021-09-27 18:34:45 -04:00
parent 2aa85f5f78
commit ba56491ea0
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ static const int32 kQuitDaemon = 'quit';
SyslogDaemon::SyslogDaemon()
:
BApplication(B_SYSTEM_LOGGER_SIGNATURE),
BServer(B_SYSTEM_LOGGER_SIGNATURE, false, NULL),
fHandlerLock("handler lock")
{
}

View File

@ -6,9 +6,9 @@
#define _SYSLOG_DAEMON_H_
#include <Application.h>
#include <Locker.h>
#include <List.h>
#include <Server.h>
#include <OS.h>
#include <syslog_daemon.h>
@ -17,7 +17,7 @@
typedef void (*handler_func)(syslog_message&);
class SyslogDaemon : public BApplication {
class SyslogDaemon : public BServer {
public:
SyslogDaemon();