mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 07:21:14 -03:00
implement reader_cancel_thread using __thread thread-local storage
This commit is contained in:
@@ -728,7 +728,7 @@ static int wildcard_expand_internal(const wchar_t *wc,
|
||||
|
||||
// debug( 3, L"WILDCARD_EXPAND %ls in %ls", wc, base_dir );
|
||||
|
||||
if (is_main_thread() && reader_interrupted())
|
||||
if (is_main_thread() ? reader_interrupted() : reader_cancel_thread())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user