This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: Vte pty--it's baaaack
- From: Roland McGrath <roland at redhat dot com>
- To: Andrew Cagney <cagney at redhat dot com>
- Cc: Chris Moller <cmoller at redhat dot com>, frysk at sources dot redhat dot com
- Date: Thu, 20 Apr 2006 14:12:52 -0700 (PDT)
- Subject: Re: Vte pty--it's baaaack
> One technical question, if the code goes on to open things using NAME
> and ignore ASLAVE, will the ASLAVE file-descriptor need to be closed and
> if so when can it be closed? I expect the GUI code to just use NAME and
> create objects using that.
You can close it any time, it does not matter. You don't really even need
to have opened it in the first place, that's just what openpty does. All
that matters is that the master side fd stays open. When you do the Java
interface, you might as well use the couple of underlying calls instead of
actually using openpty.
Thanks,
Roland