During the destructor of ttystream (or ttystream::close() for that matter) a call to close() is recursive. This of course crashes the application.
So it looks like
ttystream::close() { close(); }
Log in to post a comment.
During the destructor of ttystream (or ttystream::close() for that matter) a call to close() is recursive.
This of course crashes the application.
So it looks like
ttystream::close() {
close();
}