Hi Steven,

we discussed a while ago about the inconsistency betwen liblogsys and main executive on this matter.

The patch in attachment changes the main executive to not abort if log file can't be set.

Fabio

--
OMG I CAN'T PRINTF.. exit(1);
Index: exec/main.c
===================================================================
--- exec/main.c (revision 1548)
+++ exec/main.c (working copy)
@@ -615,13 +615,8 @@
 
        logsys_config_facility_set ("openais", main_config.syslog_facility);
        logsys_config_mode_set (main_config.logmode);
+       logsys_config_file_set (&error_string, main_config.logfile);
 
-       res = logsys_config_file_set (&error_string, main_config.logfile);
-       if (res == -1) {
-               log_printf (LOG_LEVEL_ERROR, error_string);
-               openais_exit_error (AIS_DONE_LOGSETUP);
-       }
-
        aisexec_uid_determine (&main_config);
 
        aisexec_gid_determine (&main_config);
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to