From b5e17105b163442a030559b7b2c2454b82b3fd4c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 28 Sep 2013 21:01:20 +0200 Subject: syslog() is a blocking call on eglibc. as procd provides the actual syslog, weneed to make sure that we do not run into a deadlock. Signed-off-by: John Crispin Signed-off-by: Markus Stenberg --- syslog.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'syslog.h') diff --git a/syslog.h b/syslog.h index b2471eb..fd78363 100644 --- a/syslog.h +++ b/syslog.h @@ -18,6 +18,7 @@ enum { SOURCE_KLOG = 0, SOURCE_SYSLOG = 1, + SOURCE_INTERNAL = 2, SOURCE_ANY = 0xff, }; @@ -37,5 +38,6 @@ typedef void (*log_list_cb)(struct log_head *h); struct log_head* log_list(int count, struct log_head *h); int log_buffer_init(int size); void log_add(char *buf, int size, int source); +void log_printf(char *fmt, ...); #endif -- cgit v1.2.3