Mail Archives: cygwin/2004/01/19/20:22:43
On Mon, 19 Jan 2004, Brian Dessent wrote:
> Christopher Faylor wrote:
> >
> > I've made a new version of the Cygwin DLL and associated utilities
> > available for download. As usual, a list of what has changed is below.
>
> Again, thanks for all your work.
Ditto!
> > - Fix problems programs which need a console available when running on a
> > pty. (Christopher Faylor)
>
> After upgrading, I noticed a difference with the tty usage compared to
> 1.5.5. Now, don't get me wrong, nothing's broke that I can tell, but
> I'm just a little bit curious about the following:
>
> When I open an rxvt shell prompt, it appears that each one has allocated
> two ttys. For example, with 3 rxvts running:
>
> $ w
> 16:51:19 up 15 days, 23:19, 6 users, load average: 0.00, 0.00, 0.00
> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
> brian tty0 BOOCH 15:57 0.00s 0.00s ? -
> brian tty1 :0 15:57 0.00s 0.00s ? -
> brian tty2 BOOCH 15:58 0.00s 0.00s ? -
> brian tty3 :0 15:58 0.00s 0.00s ? -
> brian tty4 BOOCH 16:51 0.00s 0.00s ? -
> brian tty5 :0 16:51 0.00s 0.00s ? -
>
> I don't have an X server running at all. My DISPLAY variable is set to
> "localhost:0.0" but it doesn't seem to matter if I remove that from
> .profile. My $CYGWIN is set to "ntsec tty" and this is under w2k:
>
> CYGWIN_NT-5.0 booch 1.5.6(0.108/3/2) 2004-01-19 00:43 i686 unknown
> unknown Cygwin
>
> So, just out of curiosity, why two ttys for each rxvt?
> Brian
I don't know about the 2 tty issue, but ":0" is rxvt's internal name for
"no display". In fact, IIUC, if you actually do have an X server running
on display ":0", rxvt will pop up a Windows window if the DISPLAY is set
to that value. Fortunately, most X servers use the screen number as well
(i.e., at least ":0.0"), so that problem shouldn't come up in real life.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -