mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
Add a cant_wait parameter to iothread_perform
Sometimes we must spawn a new thread, to avoid the risk of deadlock. Ensure we always spawn a thread in those cases. In particular this includes the fillthread.
This commit is contained in:
@@ -301,7 +301,7 @@ static void run_internal_process(process_t *p, std::string &&outdata, std::strin
|
||||
// builtin_run provide this directly, rather than setting it in the process.
|
||||
f->success_status = p->status;
|
||||
|
||||
iothread_perform([f]() {
|
||||
iothread_perform_cantwait([f]() {
|
||||
proc_status_t status = f->success_status;
|
||||
if (!f->skip_out()) {
|
||||
ssize_t ret = write_loop(f->src_outfd, f->outdata.data(), f->outdata.size());
|
||||
|
||||
Reference in New Issue
Block a user