summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
authorS. Hameed <shameed@jp.adit-jv.com>2017-02-09 19:31:02 +0900
committerSaya Sugiura <ssugiura@jp.adit-jv.com>2019-04-24 17:13:19 +0900
commit7d9d156fb8571aff4eb89db201a26af0d0370dc7 (patch)
tree93232d0b1dcd9450bd254826b6128ae9773a8702 /src/daemon/dlt-daemon.c
parent3aec281a06a9ccf7d2af921dc9cb152c340e7882 (diff)
downloadDLT-daemon-7d9d156fb8571aff4eb89db201a26af0d0370dc7.tar.gz
dlt-daemon: unlink application socket
Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index b7766f0..79b4058 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -1287,8 +1287,13 @@ void dlt_daemon_local_cleanup(DltDaemon *daemon, DltDaemonLocal *daemon_local, i
/* Ignore result */
dlt_file_free(&(daemon_local->file), daemon_local->flags.vflag);
+#ifndef DLT_USE_UNIX_SOCKET_IPC
/* Try to delete existing pipe, ignore result of unlink() */
unlink(daemon_local->flags.daemonFifoName);
+#else
+ /* Try to delete existing pipe, ignore result of unlink() */
+ unlink(daemon_local->flags.appSockPath);
+#endif
#ifdef DLT_SHM_ENABLE
/* free shared memory */