From 7d9d156fb8571aff4eb89db201a26af0d0370dc7 Mon Sep 17 00:00:00 2001 From: "S. Hameed" Date: Thu, 9 Feb 2017 19:31:02 +0900 Subject: dlt-daemon: unlink application socket Signed-off-by: S. Hameed --- src/daemon/dlt-daemon.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/daemon/dlt-daemon.c') 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 */ -- cgit v1.2.1