fix(ui): correct libc symbol lookup for direct _exit syscall to achieve async-signal-safety
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user