vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: cb15470580aa77a7a4baef7af091909d9905d877
Parent: 635329c72144287a2247ebadf56ca93967a8f595
Author: Randy Palamar
Date:   Fri, 29 Nov 2024 20:02:29 -0700

use SYS_exit_group instead of SYS_exit

we have multiple threads active so we should use this instead

Diffstat:
Mplatform_linux_amd64.c | 2+-
Mplatform_linux_common.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/platform_linux_amd64.c b/platform_linux_amd64.c @@ -15,10 +15,10 @@ #define SYS_stat 4 #define SYS_mmap 9 #define SYS_clone 56 -#define SYS_exit 60 #define SYS_prctl 157 #define SYS_futex 202 #define SYS_getdents64 217 +#define SYS_exit_group 231 #define SYS_inotify_add_watch 254 #define SYS_inotify_rm_watch 255 #define SYS_inotify_init1 294 diff --git a/platform_linux_common.c b/platform_linux_common.c @@ -79,7 +79,7 @@ static void os_fatal(s8 msg) { os_write_err_msg(msg); - syscall1(SYS_exit, 1); + syscall1(SYS_exit_group, 1); __builtin_unreachable(); }