lkml.org 
[lkml]   [2002]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] printk from userspace
Linus Torvalds wrote:
> On Wed, 14 Aug 2002, Benjamin LaHaise wrote:
>
>>/dev/kmsg was another suggestion for the name. But please revert the
>>yet-another-syscall variant -- having a duplicate way for logging that
>>doesn't work with stdio just seems sick to me (sys_syslog should die).
>
>
> Actually, anybody who uses stdio on syslog messages should be roasted.
> Over the nice romantic glow of red-hot coal, slowly cooking the stupid git
> alive.
>
> It's not a bug, it's a feature. A syslog message needs to be atomic, which
> means that it MUST NOT use the buffering of stdio.
>

You can do stdio nonbuffered. As a matter of fact, if you're using
klogd, it *will* be nonbuffered :^)

The point that Ben is making is that it should be a write() system call
instead of something ad hockish, and I think I have to agree with him --
although, again, Andrew's patch does what I need.

-hpa


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.789 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site