This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Opinions solicted for changes to tty names in 1.7.10


On Jun 15 10:33, Charles Wilson wrote:
> On 6/14/2011 4:36 PM, Christopher Faylor wrote:
> > Corinna suggested that I should send a query here to see if anyone knows
> > if this proposed change will affect any existing applications which use
> > ptys like mintty, emacs, xterm, rxvt, or screen.
> 
> I think rxvt will break, but I'm sure that can be corrected with an
> updated release. As currently configured, the only explicit references
> to "/dev/tty" (note: NOT "/dev/ttyN") are in ptytty.c, as part of the
> rxvt_control_tty function.  This function is basically concerned with
> ensuring that the active [pt]ty does NOT have a controlling terminal, so
> it opens /dev/tty with O_NOCTTY and does various checks.
> 
> However, rxvt uses openpty() + ttyname() stuff explicitly for all other
> purposes.
> 
> rxvt-unicode uses "/dev/tty" in a similar way, as part of its
> control_tty() function.  As configured, it uses Unix98 stuff (incl.
> ptsname(), posix_openpt(), etc) otherwise.

"/dev/tty" will not be removed, of course.  It's still the name of
the controlling terminal of the process.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]