This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
pty doesn't get closed when a shell is attached
- From: Ivan Pantuyev <ipantuye at redhat dot com>
- To: frysk at sourceware dot org
- Date: Fri, 04 Aug 2006 19:47:15 -0400
- Subject: pty doesn't get closed when a shell is attached
So I create a Pty class and make vte it's master. Everything works fine.
But when I do
Manager.host.requestCreateAttachedProc(ptyname, ptyname, ptyname, new
String[] {"/bin/sh"},
new TaskObserver.Attached()
{....
and exit frysk, the pty just hangs there (as does the shell, but that's
not surprising). I don't see how something using a pty from the slave
end could keep it alive... Something I'm doing wrong in that line? Ideas?
thanks