mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 00:55:08 +00:00
14 lines
316 B
C++
14 lines
316 B
C++
|
#include "message_handler.h"
|
||
|
|
||
|
#include <loguru.hpp>
|
||
|
|
||
|
struct ExitHandler : MessageHandler {
|
||
|
IpcId GetId() const override { return IpcId::Exit; }
|
||
|
|
||
|
void Run(std::unique_ptr<BaseIpcMessage> request) override {
|
||
|
LOG_S(INFO) << "Exiting; got IpcId::Exit";
|
||
|
exit(0);
|
||
|
}
|
||
|
};
|
||
|
REGISTER_MESSAGE_HANDLER(ExitHandler);
|