lkml.org 
[lkml]   [1998]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: OFFTOPIC: write atomicity/jumbled logs

> > writing them all the time, and in the past four years nobody has
> > complained of jumbled log messages. But Single Unix doesn't mention this,
>
> i don't know what's really involved, but jumbled logs happen constantly.
> turn on ipfw logging then flood your server with network traffic.

I think that's just printk's non-atomicity.

As best I recall, the value write() returns always represents a
contiguous stream of bytes written to the file descriptor (so that
chunk will be atomic, but it may be less than the whole buffer you
asked to be written), and for things like pipes/sockets and local
files opened with O_APPEND, write()'s are guaranteed to be
non-overlapping.

Corrections, anyone?

Adam
--
You crucify all honesty \\Adam D. Bradley artdodge@cs.bu.edu
No signs you see do you believe \\Boston University Computer Science
And all your words just twist and turn\\ Grad Student and Linux Hacker
Reviving just to crash and burn \\ <><
---------> Why can't you listen as love screams everywhere? <--------


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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