[patch 4/5 salinfo-0.6] output

From: Keith Owens <kaos_at_sgi.com>
Date: 2004-10-04 16:25:58
output          Stop stdout and stderr stamping on each other

Index: salinfo-0.6/salinfo_decode.c
===================================================================
--- salinfo-0.6.orig/salinfo_decode.c	Mon Oct  4 13:20:11 2004
+++ salinfo-0.6/salinfo_decode.c	Mon Oct  4 13:22:07 2004
@@ -304,12 +304,12 @@ talk_to_sal (const char *type, const cha
 			type,
 			suffix);
 		fclose(stdout);
-		if (!(stdout = fopen(filename, "w"))) {
+		if (!(stdout = fopen(filename, "a"))) {
 			perror(filename);
 			goto out;
 		}
 		fclose(stderr);
-		if (!((stderr = fopen(filename, "w")))) {
+		if (!((stderr = fopen(filename, "a")))) {
 			perror(filename);
 			goto out;
 		}

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Oct 4 02:27:06 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:31 EST