Tue Feb 28 10:33:42 PST 2006
- Previous message: [Slony1-commit] By cbbrowne: Bug: EXECUTE SCRIPT adds columns, then references to the
- Next message: [Slony1-commit] By wieck: Let it compile and install under FreeBSD Jan
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Fix for Exits without error message if unable to create pid file (ID: 1517)
Elevate a DEBUG to a FATAL
Modified Files:
--------------
slony1-engine/src/slon:
slon.c (r1.62 -> r1.63)
-------------- next part --------------
Index: slon.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/slon.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -Lsrc/slon/slon.c -Lsrc/slon/slon.c -u -w -r1.62 -r1.63
--- src/slon/slon.c
+++ src/slon/slon.c
@@ -323,14 +323,15 @@
FILE *pidfile;
pidfile = fopen(pid_file, "w");
- if (pidfile)
+ if (pidfile != NULL)
{
fprintf(pidfile, "%d", slon_pid);
fclose(pidfile);
}
else
{
- slon_log(SLON_WARN, "Cannot open pid_file \"%s\", pid_file\n");
+ slon_log(SLON_FATAL, "Cannot open pid_file \"%s\", pid_file\n");
+ exit(-1);
}
}
- Previous message: [Slony1-commit] By cbbrowne: Bug: EXECUTE SCRIPT adds columns, then references to the
- Next message: [Slony1-commit] By wieck: Let it compile and install under FreeBSD Jan
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list