diff options
author | Vo Trung Chi <Chi.VoTrung@vn.bosch.com> | 2019-08-05 15:26:47 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-09-13 08:49:36 +0900 |
commit | 0ca94151777a560209fe063a7f02474e3a0ff47d (patch) | |
tree | c62c6a9a613fe03fdadbb4961d73ecfe709799b5 /src/lib/dlt_user.c | |
parent | 677a246366465af96d254b211d56e950f5563d1b (diff) | |
download | DLT-daemon-0ca94151777a560209fe063a7f02474e3a0ff47d.tar.gz |
shm: Resend dlt msg when client connect
After dlt-client connects to dlt-daemon successfully, all the stored
dlt messages in daemon was not flushed to dlt client when using shared
memory as IPC. It is harmonized with dlt_daemon_process_user_message_log().
Signed-off-by: Vo Trung Chi <chi.votrung@vn.bosch.com>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r-- | src/lib/dlt_user.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index effb896..6cadb1f 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -3537,14 +3537,7 @@ DltReturnValue dlt_user_log_send_log(DltContextData *log, int mtype) return DLT_RETURN_WRONG_PARAMETER; /* also for Trace messages */ -#ifdef DLT_SHM_ENABLE - - if (dlt_user_set_userheader(&userheader, DLT_USER_MESSAGE_LOG_SHM) < DLT_RETURN_OK) -#else - if (dlt_user_set_userheader(&userheader, DLT_USER_MESSAGE_LOG) < DLT_RETURN_OK) -#endif - return DLT_RETURN_ERROR; if (dlt_message_init(&msg, 0) == DLT_RETURN_ERROR) |