Skip to content

Commit

Permalink
Send SIGINT on exit to XcpTl_Thread
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed May 24, 2021
1 parent df8d76b commit 36553dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/xcpsim/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


#include <pthread.h>
#include <signal.h>

#include "xcp.h"
#include "terminal.h"
Expand Down Expand Up @@ -55,7 +56,7 @@ int main(int argc, char **argv)
pthread_create(&threads[UI_THREAD], NULL, &XcpTerm_Thread, NULL);
pthread_create(&threads[TL_THREAD], NULL, &XcpTl_Thread, NULL);
pthread_join(threads[UI_THREAD], NULL);

pthread_kill(threads[TL_THREAD], SIGINT);

FlsEmu_DeInit();
XcpHw_Deinit();
Expand Down

0 comments on commit 36553dd

Please sign in to comment.