1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Don't quit when configfiles are deleted

This commit is contained in:
Nikolas Garofil 2010-11-21 16:56:50 +01:00
parent b0e1c3d8a5
commit b5216499c2

View File

@ -2468,6 +2468,11 @@ void initialisation(int argc, char** argv);
/* reload the config file */
static void reload_config(void)
{
struct stat sb;
if (stat(current_config.c_str(), &sb) || (!S_ISREG(sb.st_mode) && !S_ISLNK(sb.st_mode))) {
NORM_ERR(_("Config file '%s' is gone, continuing with config from memory.\nIf you recreate this file sent me a SIGUSR1 to tell me about it. ( kill -s USR1 %d )"), current_config.c_str(), getpid());
return;
}
clean_up(NULL, NULL);
state.reset(new lua::state);
conky::export_symbols(*state);