From b4a0807c40e4d6352c50957e3a19642094c594b1 Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Tue, 26 Jul 2016 13:36:48 +0200 Subject: [PATCH] BOINC GAHP: append to an existing stderr file instead of overwriting it --- samples/condor/boinc_gahp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/condor/boinc_gahp.cpp b/samples/condor/boinc_gahp.cpp index d499944d21..df02c04623 100644 --- a/samples/condor/boinc_gahp.cpp +++ b/samples/condor/boinc_gahp.cpp @@ -459,7 +459,7 @@ void handle_fetch_output(COMMAND& c) { } else { sprintf(path, "%s/%s", req.dir, req.stderr_filename.c_str()); } - FILE* f = fopen(path, "w"); + FILE* f = fopen(path, "a"); if (!f) { sprintf(buf, "can't\\ open\\ stderr\\ output\\ file\\ %s ", path); s = string(buf);