This is the mail archive of the cygwin 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]

Pseudo-terminal will not be allocated because stdin is not a terminal.

Hi all,
I'm about to pack my bags and move from 1.5 to 1.7 (CYGWIN_NT-6.0
EV0017A4D11749 1.7.0(0.217/5/3) 2009-11-03 15:06 i686 Cygwin) on Vista
SP1, but one thing got me stumped.

I log in to different machines (e.g. lab1) via SSH. For this purpose I
created a number of desktop shortcuts, like this:
Target: C:\cygwin\bin\run.exe rxvt --geometry 170x60+0+0 -e ssh -Y lab1
Start in: C:\cygwin\bin

These work fine.

So I created a copy of this shortcut and edited it to
Target: C:\cygwin17\bin\run.exe rxvt --geometry 170x60+0+0 -e ssh -Y lab1
Start in: C:\cygwin17\bin

When I double-click the shortcut to 1.7, the rxvt window comes up but
the above error message (Pseudo-terminal will not be allocated because
stdin is not a terminal.) is displayed at the top and
* the prompt does not appear although I can type commands
* DISPLAY is not set correctly
* joe does not run (Couldn't load termcap/terminfo entry), necause
TERM is not set
* vim displays a warning:
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

and so on and so forth.

Here's a diff between the environment in lab1 after login via 1.5 and 1.7:

--- envronment.1.5      2009-11-05 16:10:46.000000000 +0100
+++ envronment.1.7      2009-11-05 16:10:27.000000000 +0100
@@ -7,23 +7,21 @@
@@ -74,13 +72,12 @@
 ACLOCAL_FLAGS=-I /opt/gnome/share/aclocal
 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib64/pkgconfig:/opt/gnome/lib64/pkgconfig:/opt/gnome/lib64/pkgconfig:/opt/gnome/share/pkgconfig %s
 CVSEDITOR=/usr/bin/joe -nobackups
+DISPLAY=:0.0 %s %s

I thought maybe it's some environment difference problem, but changing
the shortcut like this didn't help:
Target: C:\cygwin\bin\run.exe rxvt --geometry 170x60+0+0 -e bash
--login -c 'ssh -Y lab1'

If I start the local 1.7 Cygwin prompt from another shortcut:
Target: C:\cygwin17\bin\run.exe rxvt.exe --geometry 170x60+0+0 -e
/bin/bash --login
Start in: C:\cygwin17\bin

and then type "ssh -Y lab1", then it works (TERM and DISPLAY are set,
prompt appears, etc)

Any ideas ? (I used up mine).

The fork behavior of 1.5 and 1.7 appears to be different:
In 1.5, rxvt spawns another rxvt, which spawns ssh; then the second rxvt exits:

Name                             Pid Pri Thd  Hnd      VM      WS    Priv
rxvt                            6116   8   4  110  443164    5472    3712
ssh                             5448   8   5  147  449716    6320    3704

In 1.7, the second rxvt sticks around:
rxvt                            5932   8   4  127  444184    6288    4736
  rxvt                          3124   8   2   87  431304    3944    3632
    ssh                         5748   8   5  169  449540    6200    3700

Life is complex, with real and imaginary parts

Problem reports:
Unsubscribe info:

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