BOINC GAHP: append to an existing stderr file instead of overwriting it

This commit is contained in:
Bernd Machenschalk 2016-07-26 13:36:48 +02:00
parent f88c65125b
commit b4a0807c40
1 changed files with 1 additions and 1 deletions

View File

@ -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);