mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
eval: Fix jobwait() to process multiple jobs concurrently
The new event processing architecture changed `jobwait()` semantics: Only one job is processed at time since process_wait only focuses on one queue. This fixes the problem with a few changes: - Allow the event queue polled by `process_wait` to be overriden by a new argument. - Allow the parent queue to be overriden with `queue_replace_parent` - Create a temporary queue that serves as the parent for all jobs passed to `jobwait()`
This commit is contained in:
@@ -257,7 +257,7 @@ static int do_os_system(char **argv,
|
||||
// the UI
|
||||
ui_busy_start();
|
||||
ui_flush();
|
||||
int status = process_wait(proc, -1);
|
||||
int status = process_wait(proc, -1, NULL);
|
||||
ui_busy_stop();
|
||||
|
||||
// prepare the out parameters if requested
|
||||
|
Reference in New Issue
Block a user