[mISDNuser PATCH] Append to debug log file instead of overwriting it
Thomas Jarosch <[email protected]> Thu, 04 Sep 2014 16:58:34 +0200
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <50363596.KrhFAXVQPp@storm> |
In case the user restarts / reboots after a crash,
the log file is still there.
---
capi20/daemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/capi20/daemon.c b/capi20/daemon.c
index bdbe6dc..57780ec 100644
--- a/capi20/daemon.c
+++ b/capi20/daemon.c
@@ -2153,7 +2153,7 @@ int main(int argc, char *argv[])
exit(1);
if (DebugFileName) {
- DebugFile = fopen(DebugFileName, "w");
+ DebugFile = fopen(DebugFileName, "a");
if (!DebugFile) {
fprintf(stderr, "Cannot open %s - %s\n", DebugFileName, strerror(errno));
exit(1);
--
1.9.3