mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
core: add signal "signal_sighup"
This commit is contained in:
+10
-3
@@ -509,9 +509,16 @@ weechat_locale_check ()
|
||||
void
|
||||
weechat_sighup ()
|
||||
{
|
||||
log_printf (_("Signal %s received, exiting WeeChat..."), "SIGHUP");
|
||||
(void) hook_signal_send ("quit", WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
weechat_quit = 1;
|
||||
int rc;
|
||||
|
||||
rc = hook_signal_send ("signal_sighup",
|
||||
WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
if (rc != WEECHAT_RC_OK_EAT)
|
||||
{
|
||||
log_printf (_("Signal %s received, exiting WeeChat..."), "SIGHUP");
|
||||
(void) hook_signal_send ("quit", WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
weechat_quit = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user