chiark / gitweb /
Fix service file to match installed elogind binary location
[elogind.git] / src / basic / log.c
index 2169ecef3e6a503e55ba52a8267f8e018ba572bc..3924ed71f10680261e680f5ba9a39f47a7051444 100644 (file)
@@ -238,6 +238,8 @@ fail:
 int log_open(void) {
         int r;
 
+        /* Do not call from library code. */
+
         /* If we don't use the console we close it here, to not get
          * killed by SAK. If we don't use syslog we close it here so
          * that we are not confused by somebody deleting the socket in
@@ -316,6 +318,8 @@ void log_set_target(LogTarget target) {
 }
 
 void log_close(void) {
+        /* Do not call from library code. */
+
         log_close_journal();
         log_close_syslog();
         log_close_kmsg();
@@ -324,6 +328,8 @@ void log_close(void) {
 
 #if 0 /// UNNEEDED by elogind
 void log_forget_fds(void) {
+        /* Do not call from library code. */
+
         console_fd = kmsg_fd = syslog_fd = journal_fd = -1;
 }
 #endif // 0
@@ -1052,6 +1058,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
 }
 
 void log_parse_environment_realm(LogRealm realm) {
+        /* Do not call from library code. */
+
         const char *e;
 
         if (get_ctty_devnr(0, NULL) < 0)