Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <asarai@suse.de>
- Loading branch information