server: improve pidfile and log handling

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/log.h b/log.h
index a69846e..fdf3d7b 100644
--- a/log.h
+++ b/log.h
@@ -11,5 +11,6 @@
 extern int log_info(const char *format, ...);
 extern int log_local(const char *format, ...);
 extern int log_valist(const char *str, va_list);
+extern int log_local_buf(const char *buf, size_t);
 
 #endif