summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src/main.cpp
diff options
context:
space:
mode:
authorchristian linke <christian.linke@bmw.de>2012-11-29 16:00:05 +0100
committerchristian linke <christian.linke@bmw.de>2012-11-29 16:00:05 +0100
commit104255615d643a2278d8430a876413793563ab36 (patch)
tree2c668a14657fdf14fae39ecfd583b75dc69bc1da /AudioManagerDaemon/src/main.cpp
parent5bdad323a9b70758b1076cdef1622d71325d2e52 (diff)
downloadaudiomanager-104255615d643a2278d8430a876413793563ab36.tar.gz
* make AudioManager rundown cleaner. Now an extra created pipe is used to trigger the mainloop one last time before the AudioManager exits.
Signed-off-by: christian linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/src/main.cpp')
-rwxr-xr-xAudioManagerDaemon/src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/AudioManagerDaemon/src/main.cpp b/AudioManagerDaemon/src/main.cpp
index 3d552f5..6b84ba3 100755
--- a/AudioManagerDaemon/src/main.cpp
+++ b/AudioManagerDaemon/src/main.cpp
@@ -265,10 +265,15 @@ static void signalHandler(int sig, siginfo_t *siginfo, void *context)
(void) siginfo;
(void) context;
logInfo("signal handler was called, signal",sig);
- gDispatchDone = 1;
//todo: maually fire the mainloop
CAmControlSender::CallsetControllerRundown();
+ //deinit the DLT
+ CAmDltWrapper* inst(getWrapper());
+ inst->deinit();
+
+ CAmSocketHandler::static_exit_mainloop();
+
}
void mainProgram()
@@ -377,7 +382,6 @@ int main(int argc, char *argv[], char** envp)
exit(EXIT_FAILURE);
}
-
close(fd0);
close(fd1);
close(fd2);