public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 4/5 salinfo-0.6] output
@ 2004-10-04  6:25 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2004-10-04  6:25 UTC (permalink / raw)
  To: linux-ia64

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;
 		}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-04  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04  6:25 [patch 4/5 salinfo-0.6] output Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox