mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
30 lines
759 B
C++
30 lines
759 B
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
|
|
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
*/
|
|
|
|
#ifndef __SIGNAL_HANDLER_H__
|
|
#define __SIGNAL_HANDLER_H__
|
|
|
|
#include <ace/Event_Handler.h>
|
|
|
|
namespace Trinity
|
|
{
|
|
|
|
/// Handle termination signals
|
|
class SignalHandler : public ACE_Event_Handler
|
|
{
|
|
public:
|
|
int handle_signal(int SigNum, siginfo_t* = NULL, ucontext_t* = NULL)
|
|
{
|
|
HandleSignal(SigNum);
|
|
return 0;
|
|
}
|
|
virtual void HandleSignal(int /*SigNum*/) { };
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* __SIGNAL_HANDLER_H__ */
|