mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
process_wait(): Avoid dereference after LOOP_PROCESS_EVENTS. (#5917)
This commit is contained in:
parent
1420e10474
commit
94101987a5
@ -170,8 +170,9 @@ int process_wait(Process *proc, int ms, MultiQueue *events)
|
||||
int status = -1;
|
||||
bool interrupted = false;
|
||||
if (!proc->refcount) {
|
||||
status = proc->status;
|
||||
LOOP_PROCESS_EVENTS(proc->loop, proc->events, 0);
|
||||
return proc->status;
|
||||
return status;
|
||||
}
|
||||
|
||||
if (!events) {
|
||||
|
Loading…
Reference in New Issue
Block a user