1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core: restore signal "signal_sighup", and if eaten do not reload configuration

This commit is contained in:
Sébastien Helleu
2020-04-21 22:31:12 +02:00
parent de1e61f7cd
commit 100440c8a1
6 changed files with 127 additions and 43 deletions
+1 -1
View File
@@ -5197,6 +5197,7 @@ void
command_reload_files ()
{
struct t_config_file *ptr_config_file;
for (ptr_config_file = config_files; ptr_config_file;
ptr_config_file = ptr_config_file->next_config)
{
@@ -5204,7 +5205,6 @@ command_reload_files ()
}
}
/*
* Callback for command "/reload": reloads a configuration file.
*/
+22
View File
@@ -464,6 +464,28 @@ util_signal_search (const char *name)
return -1;
}
/*
* Gets a signal name with a signal number; only some commonly used signal
* names are supported here (see declaration of util_signals[]).
*
* Returns the pointer to the signal name, NULL if not found.
*/
const char *
util_signal_search_number (int signal_number)
{
int i;
for (i = 0; util_signals[i].name; i++)
{
if (util_signals[i].signal == signal_number)
return util_signals[i].name;
}
/* signal not found */
return NULL;
}
/*
* Catches a system signal.
*/
+1
View File
@@ -59,6 +59,7 @@ extern long util_parse_delay (const char *string_delay, long default_factor);
/* signal */
extern int util_signal_search (const char *name);
extern const char *util_signal_search_number (int signal_number);
extern void util_catch_signal (int signum, void (*handler)(int));
/* files/directories */
+1 -1
View File
@@ -688,7 +688,7 @@ weechat_locale_check ()
}
/*
* Callback for system signal SIGHUP: reloads config.
* Callback for system signal SIGHUP: reloads configuration.
*/
void