|
|
8486e6 |
diff -ur watchdog-5.15.old/src/test_binary.c watchdog-5.15/src/test_binary.c
|
|
|
8486e6 |
--- watchdog-5.15.old/src/test_binary.c 2016-02-26 12:05:00.000000000 +0000
|
|
|
8486e6 |
+++ watchdog-5.15/src/test_binary.c 2018-02-13 08:51:27.292750445 +0000
|
|
|
8486e6 |
@@ -263,11 +263,11 @@
|
|
|
8486e6 |
* to cause trouble, so make them go to their respective files */
|
|
|
8486e6 |
strcpy(filename_buf, logdir);
|
|
|
8486e6 |
strcat(filename_buf, "/test-bin.stdout");
|
|
|
8486e6 |
- if (!freopen(filename_buf, "a+", stdout))
|
|
|
8486e6 |
+ if (!freopen(filename_buf, "a", stdout))
|
|
|
8486e6 |
exit(errno);
|
|
|
8486e6 |
strcpy(filename_buf, logdir);
|
|
|
8486e6 |
strcat(filename_buf, "/test-bin.stderr");
|
|
|
8486e6 |
- if (!freopen(filename_buf, "a+", stderr))
|
|
|
8486e6 |
+ if (!freopen(filename_buf, "a", stderr))
|
|
|
8486e6 |
exit(errno);
|
|
|
8486e6 |
|
|
|
8486e6 |
/* now start binary */
|
|
|
8486e6 |
diff -ur watchdog-5.15.old/src/watchdog.c watchdog-5.15/src/watchdog.c
|
|
|
8486e6 |
--- watchdog-5.15.old/src/watchdog.c 2016-02-26 12:05:00.000000000 +0000
|
|
|
8486e6 |
+++ watchdog-5.15/src/watchdog.c 2018-02-13 08:51:43.747738628 +0000
|
|
|
8486e6 |
@@ -86,11 +86,11 @@
|
|
|
8486e6 |
* So make stdout and stderr go to their respective files */
|
|
|
8486e6 |
strcpy(filename_buf, logdir);
|
|
|
8486e6 |
strcat(filename_buf, "/repair-bin.stdout");
|
|
|
8486e6 |
- if (!freopen(filename_buf, "a+", stdout))
|
|
|
8486e6 |
+ if (!freopen(filename_buf, "a", stdout))
|
|
|
8486e6 |
exit(errno);
|
|
|
8486e6 |
strcpy(filename_buf, logdir);
|
|
|
8486e6 |
strcat(filename_buf, "/repair-bin.stderr");
|
|
|
8486e6 |
- if (!freopen(filename_buf, "a+", stderr))
|
|
|
8486e6 |
+ if (!freopen(filename_buf, "a", stderr))
|
|
|
8486e6 |
exit(errno);
|
|
|
8486e6 |
|
|
|
8486e6 |
/* now start binary */
|