mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619
This commit is contained in:
@@ -11459,6 +11459,9 @@ static void f_jobclose(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
process_close_err(proc);
|
||||
} else {
|
||||
process_close_streams(proc);
|
||||
if (proc->type == kProcessTypePty) {
|
||||
pty_process_close_master(&data->proc.pty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user