summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 52369d8e..616e6274 100644
--- a/src/log.h
+++ b/src/log.h
@@ -4,10 +4,15 @@
#include "valgrind/valgrind.h"
#include "buffer.h"
+/* Close fd and _try_ to get a /dev/null for it instead.
+ * Returns 0 on success and -1 on failure (fd gets closed in all cases)
+ */
+LI_API int openDevNull(int fd);
+
LI_API void log_init(void);
LI_API void log_free(void);
-LI_API int log_error_open(buffer *file, int use_syslog);
+LI_API int log_error_open(buffer* file, buffer* breakage_file, int use_syslog, int dont_daemonize);
LI_API int log_error_close();
LI_API int log_error_write(void *srv, const char *filename, unsigned int line, const char *fmt, ...);
LI_API int log_error_cycle();