aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index c7b2275..3ba1237 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -15,6 +15,7 @@
#include <mlx.h>
#include <stddef.h>
#include <stdlib.h>
+#include <signal.h>
#include <stdint.h>
static void
@@ -65,7 +66,7 @@ int
}
if (clist->isoldmus && clist->wlist.inited)
{
- /* kill fork() here */
+ kill(clist->mpid, SIGTERM);
}
ft_free_lists(clist);
ft_printf("Exiting program\n");