Closed pscollins closed 8 years ago
This also occurs if you exit the shell using exit
. On my system at least, nothing panics until you type additional input. Is this true for you as well?
More broadly, the issue here is that the process needs to exit gracefully when the tty is closed by the shell, and currently it doesn't react to that event at all. As a result, it panics eventually when some invariant is violated because the tty is closed.
Reopening since this behavior hasn't been fixed. I just opened a PR that I think should do the trick.
adding a link to said PR https://github.com/withoutboats/notty/pull/35
This is now fixed properly.
Trying to quit the shell with Ctrl-D out of habit, I got the following stack trace:
It looks like the issue is in
scaffolding/src/main.rs
at:Because I suppose in
src/output/mod.rs
,Output::next
is returningNone
.