weston-terminal: Make exit path a little more obvious
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
+5
-3
@@ -3054,10 +3054,12 @@ io_handler(struct task *task, uint32_t events)
|
|||||||
}
|
}
|
||||||
|
|
||||||
len = read(terminal->master, buffer, sizeof buffer);
|
len = read(terminal->master, buffer, sizeof buffer);
|
||||||
if (len < 0)
|
if (len < 0) {
|
||||||
terminal_destroy(terminal);
|
terminal_destroy(terminal);
|
||||||
else
|
return;
|
||||||
terminal_data(terminal, buffer, len);
|
}
|
||||||
|
|
||||||
|
terminal_data(terminal, buffer, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user