in reply to Re^2: Looking for a simple multiprocess-enabled logging module
in thread Looking for a simple multiprocess-enabled logging module
If the O_APPEND flag of the file status flags is set, the file offset shall be set to the end of the file prior to each write and no intervening file modification operation shall occur between changing the file offset and the write operation....On most Linux systems, PIPE_BUF is 4096.Write requests to a pipe or FIFO shall be handled in the same way as a regular file with the following exceptions: ... Write requests of PIPE_BUF bytes or less shall not be interleaved with data from other processes doing writes on the same pipe. Writes of greater than PIPE_BUF bytes may have data interleaved, on arbitrary boundaries, with writes by other processes, whether or not the O_NONBLOCK flag of the file status flags is set.
See the write(2) man page on your system and the Single Unix Specification for more.
Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
|
---|