Hi Steven,

very simple.. if we can't open the logfile, the fd is invalid.

Trying to write to it == KABOOM.

The fix is in attachment.. as bonus also update the Copyright date.

Cheers
Fabio
Index: exec/logsys.c
===================================================================
--- exec/logsys.c	(revision 1726)
+++ exec/logsys.c	(working copy)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2002-2004 MontaVista Software, Inc.
- * Copyright (c) 2006-2008 Red Hat, Inc.
+ * Copyright (c) 2006-2009 Red Hat, Inc.
  *
  * Author: Steven Dake ([email protected])
  * Author: Lon Hohberger ([email protected])
@@ -338,7 +338,7 @@
 	/*
 	 * Output to configured file
 	 */	
-	if (logsys_mode & LOG_MODE_OUTPUT_FILE) {
+	if ((logsys_mode & LOG_MODE_OUTPUT_FILE) && logsys_file_fp) {
 		/*
 		 * Output to a file
 		 */
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to