terminal: close pty before opening it
There is no explicit call to reopen the underlying pty so we simply force-close it before (re)-opening it. This will allow the UI to reopen a pty when the child died. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
fd85a7b2ce
commit
2af9952a72
@ -377,6 +377,7 @@ int kmscon_terminal_open(struct kmscon_terminal *term,
|
||||
if (!term)
|
||||
return -EINVAL;
|
||||
|
||||
kmscon_pty_close(term->pty);
|
||||
width = kmscon_console_get_width(term->console);
|
||||
height = kmscon_console_get_height(term->console);
|
||||
ret = kmscon_pty_open(term->pty, width, height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user