News for hackers. Stuff that matters.
Re:Appending to a file from multiple processes by ArkyBeagle on Wednesday August 03, 2016 @05:22PM (#12221633)
I fully expect to be disappointed at some point, but I've always seen the "use fflush()" approach work, on both Linux and Windows.

TCP Sockets to a server over localhost might also work ( although the flush IOCTL makes no guarantees w/ sockets), then have the server serialize out. One of the nice things about Tcl is that such a server is relatively easy to do. But you may need to mind newlines - don't write until an entire "line" of text has been read.

Re:Appending to a file from multiple processes by pjc50 on Thursday August 04, 2016 @06:55AM (#12224687)
fflush() over networked drives?
Re:Appending to a file from multiple processes by ArkyBeagle on Thursday August 04, 2016 @12:25PM (#12226616)
Good question - I tended to create a TCP server and use that to write to drives local to the server machine. I never really did a "trust fall" with network mounted drives because the logger is generally not a standard part of the system - it was an add-on.