X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Fri, 6 Nov 2009 13:53:54 +0100 Message-ID: <1ef5a52f0911060453t726dfc5bwd7793b0346f9eb13@mail.gmail.com> Subject: Pseudo-terminal will not be allocated because stdin is not a terminal. From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 @@ XKEYSYMDB=3D/usr/share/X11/XKeysymDB HOST=3Dlab1 -TERM=3Dxterm SHELL=3D/bin/bash PROFILEREAD=3Dtrue HISTSIZE=3D1000 CVSROOT=3D...... MORE=3D-sl QTDIR=3D/usr/lib/qt3 -SSH_TTY=3D/dev/pts/41 GROFF_NO_SGR=3Dyes -LS_COLORS=3Dno=3D00:fi=3D00:di=3D01;34:ln=3D00;36:pi=3D40;33:so=3D01;35:do= =3D01;35:bd=3D40;33;01:cd=3D40;33;01:or=3D41;33;01:ex=3D00;32:*.cmd=3D00;32= :*.exe=3D01;32:*.com=3D01;32:*.bat=3D01;32:*.btm=3D01;32:*.dll=3D01;32:*.ta= r=3D00;31:*.tbz=3D00;31:*.tgz=3D00;31:*.rpm=3D00;31:*.deb=3D00;31:*.arj=3D0= 0;31:*.taz=3D00;31:*.lzh=3D00;31:*.zip=3D00;31:*.zoo=3D00;31:*.z=3D00;31:*.= Z=3D00;31:*.gz=3D00;31:*.bz2=3D00;31:*.tb2=3D00;31:*.tz2=3D00;31:*.tbz2=3D0= 0;31:*.avi=3D01;35:*.bmp=3D01;35:*.fli=3D01;35:*.gif=3D01;35:*.jpg=3D01;35:= *.jpeg=3D01;35:*.mng=3D01;35:*.mov=3D01;35:*.mpg=3D01;35:*.pcx=3D01;35:*.pb= m=3D01;35:*.pgm=3D01;35:*.png=3D01;35:*.ppm=3D01;35:*.tga=3D01;35:*.tif=3D0= 1;35:*.xbm=3D01;35:*.xpm=3D01;35:*.dl=3D01;35:*.gl=3D01;35:*.wmv=3D01;35:*.= aiff=3D00;32:*.au=3D00;32:*.mid=3D00;32:*.mp3=3D00;32:*.ogg=3D00;32:*.voc= =3D00;32:*.wav=3D00;32: +LS_COLORS=3D XNLSPATH=3D/usr/share/X11/nls ENV=3D/etc/bash.bashrc HOSTTYPE=3Dx86_64 @@ -74,13 +72,12 @@ CVS_RSH=3Dssh XDG_DATA_DIRS=3D/usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kd= e3/share/:/opt/gnome/share/ ACLOCAL_FLAGS=3D-I /opt/gnome/share/aclocal PKG_CONFIG_PATH=3D/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 LESSOPEN=3Dlessopen.sh %s CVSEDITOR=3D/usr/bin/joe -nobackups INFOPATH=3D/usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info -DISPLAY=3Dlocalhost:16.0 -XAUTHLOCALHOSTNAME=3Dlab1 +DISPLAY=3D:0.0 LESSCLOSE=3Dlessclose.sh %s %s G_BROKEN_FILENAMES=3D1 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 ex= its: 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 Csaba --=20 Life is complex, with real and imaginary parts -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple