mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 10:08:00 +02:00
weston-terminal: Make exit path a little more obvious
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
f9e54ab2f8
commit
fc4fb9fb92
1 changed files with 5 additions and 3 deletions
|
|
@ -3054,10 +3054,12 @@ io_handler(struct task *task, uint32_t events)
|
|||
}
|
||||
|
||||
len = read(terminal->master, buffer, sizeof buffer);
|
||||
if (len < 0)
|
||||
if (len < 0) {
|
||||
terminal_destroy(terminal);
|
||||
else
|
||||
terminal_data(terminal, buffer, len);
|
||||
return;
|
||||
}
|
||||
|
||||
terminal_data(terminal, buffer, len);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue