fix(ui): correct libc symbol lookup for direct _exit syscall to achieve async-signal-safety

This commit is contained in:
2026-07-16 23:27:55 +09:00
parent 7f1a7e5a50
commit f0e2bd26c2
3 changed files with 1 additions and 1 deletions
@@ -108,7 +108,7 @@ class PtySession {
final chdir = libc.lookupFunction<_chdir_c, _chdir_dart>('chdir');
final fcntl = libc.lookupFunction<_fcntl_c, _fcntl_dart>('fcntl');
final unsetenv = libc.lookupFunction<_unsetenv_c, _unsetenv_dart>('unsetenv');
final cExit = libc.lookupFunction<_exit_c, _exit_dart>('exit');
final cExit = libc.lookupFunction<_exit_c, _exit_dart>('_exit');
// 1. Prepare master PTY
final masterFd = posixOpenpt(2 | 0x00000400);