Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4240
Modified Files:
Tag: Feb2009
ChangeLog merovingian.mx
Log Message:
Fix bug found by Roberto; properly create logfiles if they do not exist
U merovingian.mx
Index: merovingian.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian.mx,v
retrieving revision 1.72
retrieving revision 1.72.2.1
diff -u -d -r1.72 -r1.72.2.1
--- merovingian.mx 7 Jan 2009 14:19:28 -0000 1.72
+++ merovingian.mx 2 Feb 2009 13:03:44 -0000 1.72.2.1
@@ -2079,7 +2079,8 @@
topdp->out = argp;
} else {
/* write to the given file */
- topdp->out = open(msglog, O_WRONLY | O_APPEND);
+ topdp->out = open(msglog, O_WRONLY | O_APPEND | O_CREAT,
+ S_IRUSR | S_IWUSR);
if (topdp->out == -1) {
fprintf(stderr, "unable to open '%s': %s\n",
msglog, strerror(errno));
@@ -2099,7 +2100,8 @@
if (strcmp(msglog, errlog) == 0) {
topdp->err = topdp->out;
} else {
- topdp->err = open(errlog, O_WRONLY | O_APPEND);
+ topdp->err = open(errlog, O_WRONLY | O_APPEND | O_CREAT,
+ S_IRUSR | S_IWUSR);
if (topdp->err == -1) {
fprintf(stderr, "unable to open '%s': %s\n",
errlog, strerror(errno));
U ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- ChangeLog 5 Jan 2009 12:21:41 -0000 1.3
+++ ChangeLog 2 Feb 2009 13:03:44 -0000 1.3.2.1
@@ -1,6 +1,11 @@
# ChangeLog file for sql/src/backends/monet5
# This file is updated with mchangelog (Gentoo echangelog bastard script)
+ 02 Feb 2009; Fabian Groffen <[email protected]> merovingian.mx:
+ Create logfiles when they do not exist.
+
+*Feb2009
+
28 Dec 2008; Fabian Groffen <[email protected]> merovingian.mx:
Switched internally to select() calls instead of non-blocking IO loops. This
reduces the CPU usage in idlestate considerably.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins