From c094c0c22bab892aed17572eb76c73169236d47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 12 Nov 2003 16:55:04 +0000 Subject: [PATCH] Added a comment about a missing dump of the message to stderr if write_port() fails. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5338 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/syslog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kernel/libroot/posix/syslog.cpp b/src/kernel/libroot/posix/syslog.cpp index eb5f7a2e70..3de2b3d3f4 100644 --- a/src/kernel/libroot/posix/syslog.cpp +++ b/src/kernel/libroot/posix/syslog.cpp @@ -137,6 +137,8 @@ send_syslog_message(syslog_context *context, int priority, const char *text, va_ while (write_port(port, SYSLOG_MESSAGE, &message, sizeof(syslog_message) + length) == B_INTERRUPTED); // make sure the message gets send (if there is a valid port) + + // ToDo: if write_port() returns an error, LOG_CONS is not respected }