From 528526dece384c9078d888a904c3fe96f1b0845c Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 5 Mar 2020 19:45:26 +0100 Subject: Baleck --- src/ft_exit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index ca5201c..6726fb1 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -68,7 +68,10 @@ int if (clist->isoldmus && clist->wlist.inited) { pthread_cancel(clist->tid); - pthread_join(clist->tid, NULL); + if (FT_OS == 2) + pthread_join(clist->tid, NULL); + else + pthread_kill(clist->tid, SIGTERM); } ft_free_lists(clist); ft_printf("Exiting program\n"); -- cgit v1.2.3