core: add signal "signal_sighup"
parent
160cbdb46a
commit
00abc2bde5
|
@ -17,6 +17,10 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
|||
|
||||
== Version 1.3 (under dev)
|
||||
|
||||
=== New features
|
||||
|
||||
* core: add signal "signal_sighup"
|
||||
|
||||
=== Bugs fixed
|
||||
|
||||
* irc: fix errors displayed on WHOX messages received (closes #376)
|
||||
|
|
|
@ -8388,6 +8388,11 @@ List of signals sent by WeeChat and plugins:
|
|||
String: arguments for /quit |
|
||||
Command `/quit` issued by user
|
||||
|
||||
| weechat | signal_sighup +
|
||||
_(WeeChat ≥ 1.3)_ |
|
||||
- |
|
||||
Signal SIGHUP received
|
||||
|
||||
| weechat | signal_sigquit +
|
||||
_(WeeChat ≥ 1.2)_ |
|
||||
- |
|
||||
|
|
|
@ -8535,6 +8535,11 @@ Liste des signaux envoyés par WeeChat et les extensions :
|
|||
Chaîne : paramètres pour le /quit |
|
||||
La commande `/quit` a été exécutée par l'utilisateur
|
||||
|
||||
| weechat | signal_sighup +
|
||||
_(WeeChat ≥ 1.3)_ |
|
||||
- |
|
||||
Signal SIGHUP reçu
|
||||
|
||||
| weechat | signal_sigquit +
|
||||
_(WeeChat ≥ 1.2)_ |
|
||||
- |
|
||||
|
|
|
@ -8625,6 +8625,12 @@ List of signals sent by WeeChat and plugins:
|
|||
String: argomenti per /quit |
|
||||
Comando `/quit` digitato dall'utente
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| weechat | signal_sighup +
|
||||
_(WeeChat ≥ 1.3)_ |
|
||||
- |
|
||||
Signal SIGHUP received
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| weechat | signal_sigquit +
|
||||
_(WeeChat ≥ 1.2)_ |
|
||||
|
|
|
@ -8387,6 +8387,12 @@ WeeChat とプラグインが送信するシグナルのリスト:
|
|||
String: /quit の引数 |
|
||||
ユーザがコマンド `/quit` を実行
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| weechat | signal_sighup +
|
||||
_(WeeChat バージョン 1.3 以上で利用可)_ |
|
||||
- |
|
||||
Signal SIGHUP received
|
||||
|
||||
| weechat | signal_sigquit +
|
||||
_(WeeChat バージョン 1.2 以上で利用可)_ |
|
||||
- |
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue