From: Steve O. <s.o...@pe...> - 2002-02-01 14:47:09
|
I am not exactly sure how the OpenVMS file system works, but most file systems cache writes in memory before flushing them to disk. This greatly increases write performance. I would not (at least in the default case), put a fflush or fsync in the code. Perhaps an additional method which would allow the application to flush write to the disk. Steve Ostlind PentaSafe Security Technologies 713.860.9664 > -----Original Message----- > From: Tony Cheung [SMTP:dra...@as...] > Sent: Friday, February 01, 2002 4:08 AM > To: log...@li... > Subject: [Log4cpp-devel] Log4cpp on OpenVMS > > Hi All, > > I'm not sure how many are using the OpenVMS platform here, but I am > responsible for the OpenVMS support in log4cpp. (I'm rather new to > OpenVMS myself, but I am now building a C/C++ project on it) > > I've just found out that in current log4cpp, while the application is > logging to a file, other users are not able to see the log file. > > After some investigations, I've found we could open the log file in > shared mode and in the record mode file format (both OpenVMS specific), > so that other users could "tail" on the log file. > > fsync() should also be called after evey write, so that other users > could see the real-time changes. > > Please let me know if it's a good idea to make the changes into CVS, so > that I would go ahead and do so. > > Tony > > P.S. I have subscribed to this mailing list, but somehow I am not > receiving anything from it. Hope I am the only one having this problem. > > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel |