aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ft_exit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 4f2494b..ea5cd2a 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -51,8 +51,8 @@ static void
pthread_cancel(clist->mtid);
pthread_join(clist->mtid, NULL);
}
- else
- system(FT_SND_TERM_CMD);
+ else if (system(FT_SND_TERM_CMD))
+ return ;
}
i = -1;
while (++i < FT_TOTAL_SFX)
@@ -63,8 +63,8 @@ static void
pthread_cancel(clist->sfx[i].tid);
pthread_join(clist->sfx[i].tid, NULL);
}
- else
- system(FT_SND_TERM_CMD);
+ else if (system(FT_SND_TERM_CMD))
+ return ;
}
}