mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
Handle/ignore SIGHUP
This commit is contained in:
committed by
trapexit
parent
d5a2187713
commit
ff48ff6047
@@ -261,6 +261,7 @@ static
|
||||
void
|
||||
_usr1_signal_handler(int signal_)
|
||||
{
|
||||
(void)signal_;
|
||||
// SysLog::info("Received SIGUSR1 - invalidating all nodes");
|
||||
// fuse_invalidate_all_nodes();
|
||||
}
|
||||
@@ -269,16 +270,25 @@ static
|
||||
void
|
||||
_usr2_signal_handler(int signal_)
|
||||
{
|
||||
(void)signal_;
|
||||
// SysLog::info("Received SIGUSR2 - triggering thorough gc");
|
||||
// fuse_gc();
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
_hup_signal_handler(int signal_)
|
||||
{
|
||||
(void)signal_;
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
_setup_signal_handlers()
|
||||
{
|
||||
std::signal(SIGUSR1,::_usr1_signal_handler);
|
||||
std::signal(SIGUSR2,::_usr2_signal_handler);
|
||||
std::signal(SIGHUP,::_hup_signal_handler);
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user