terminal: close pty before opening it
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 14 Jul 2012 10:14:25 +0000 (12:14 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 14 Jul 2012 10:14:25 +0000 (12:14 +0200)
commit2af9952a7236868fa8bcd9f2d7a3940f4f56dbb7
tree743a975f8ec9de115dbb2ee297d08408dedd48f4
parentfd85a7b2cea40288822fb33d4538b8e645671ea3
terminal: close pty before opening it

There is no explicit call to reopen the underlying pty so we simply
force-close it before (re)-opening it. This will allow the UI to reopen a
pty when the child died.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/terminal.c