Skip to contentSkip to conversation

output

PATCH In review Keith Owens 1 participant 1 message Oct 4, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 output

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