Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tui: don't log.Fatal on appView.Run error
When the user closes their terminal (as opposed to ctrl-c), the terminal might close the tty without waiting for process-compose to exit. This causes pcv.appView.Run to return an error, which triggers a log.Fatal: ERR Failed to start TUI error="read /dev/tty: input/output error" This leads to a race where log.Fatal might call os.Exit before the project's processes can be stopped, leaving them orphaned. Change log.Fatal to log.Error and explicitly shutdown the project to make sure processes aren't left behind.
- Loading branch information