aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-14 23:16:46 +0200
committerMax Kellermann <max@duempel.org>2012-08-14 23:16:46 +0200
commitdc22846d58264bfae3b4516e2de1614b3b97a5ca (patch)
tree99c836bbbf044e119792d2168c9729e7e35c4a44 /src/log.h
parentc9aaabb5d4467047514d291ff652d516a7025486 (diff)
downloadmpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.tar.gz
mpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.tar.xz
mpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.zip
log: store duplicated path string
Don't free the string right after calling log_init_file(). Add a new function log_deinit() that frees the string on shutdown. This fixes cycling the log file after SIGHUP (Mantis ticket 0003524).
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index 75e386b25..683ff3e9f 100644
--- a/src/log.h
+++ b/src/log.h
@@ -44,10 +44,11 @@ log_early_init(bool verbose);
bool
log_init(bool verbose, bool use_stdout, GError **error_r);
+void
+log_deinit(void);
+
void setup_log_output(bool use_stdout);
int cycle_log_files(void);
-void close_log_files(void);
-
#endif /* LOG_H */