Please sign in to comment.
tty: clean up epollConsole closing
ec0d23a ("tty: close epollConsole on errors") fixed a significant issue, but the cleanup was not ideal (especially if the function is changed in future to add additional error conditions to those currently present). Using the defer-named-error trick avoids this issue and makes the code more readable. Signed-off-by: Aleksa Sarai <firstname.lastname@example.org>
- Loading branch information...