1
0
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:
Sébastien Helleu
2015-06-06 14:48:03 +02:00
parent 160cbdb46a
commit 00abc2bde5
6 changed files with 36 additions and 3 deletions
+10 -3
View File
@@ -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;
}
}
/*