aboutsummaryrefslogtreecommitdiff
path: root/real_main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--real_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/real_main.c b/real_main.c
index 45fe08a..13ba48b 100644
--- a/real_main.c
+++ b/real_main.c
@@ -146,7 +146,10 @@ int real_main(void) {
return 1;
#endif
- pthread_exit(0);
+ MUTEX_TYPE do_not_exit;
+ mutex_init(&do_not_exit);
+ mutex_lock(&do_not_exit);
+ mutex_lock(&do_not_exit); // Yay
return 0;
}