summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Sato <yusuke-sato@apn.alpine.co.jp>2016-02-29 18:31:21 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2016-09-23 15:37:25 +0200
commite4182740e0e6477623f0a4ed269086aa5ccdd388 (patch)
treecba3da8980e50da47fb8c23cea6d69913afe9f7e
parent76da3fc5f934c1f05521168a51d678afa5fc5bae (diff)
downloadDLT-daemon-e4182740e0e6477623f0a4ed269086aa5ccdd388.tar.gz
Fix: Handle of /tmp/dlt never reset if dlt-daemon is killed during output user buffer
Handle of /tmp/dlt cannot be reset if dlt-daemon is killed during output user buffer because dlt_user_log_resend_buffer() never returns DLT_RETURN_PIPE_ERROR. Return value of dlt_user_log_resend_buffer() is modified to pass return value of dlt_user_log_out3() without change. Signed-off-by: Yusuke Sato <yusuke-sato@apn.alpine.co.jp> Change-Id: I506103ebebcdb3c145d1f0719a3c8caffc8d89c1
-rw-r--r--src/lib/dlt_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 6cb4a7d..917d457 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -4279,7 +4279,7 @@ DltReturnValue dlt_user_log_resend_buffer(void)
{
/* keep message in ringbuffer */
DLT_SEM_FREE();
- return DLT_RETURN_ERROR;
+ return ret;
}
}
DLT_SEM_FREE();