delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/28/14:11:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 28 Oct 2010 20:11:40 +0200
Message-ID: <AANLkTinEoJ8htUCk57nVpXiY0rjWcNo-JPTD_7qWi45t@mail.gmail.com>
Subject: issue with inherited handle (ssh.exe, gitk)
From: jean-luc malet <jeanluc DOT malet AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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
cygwin 1.7.7(0.230/5/3)

this issue is related to another issue reported on the list about gitk
and the fact that running 'gitk --all &' will have the xterm closed

in fact I noticed that right before the xterm close the string 'exit'
is printed on the command line
I managed to avoid this issue by doing gitk 0>&- 1>&- 2>&-

in another program I spawn a ssh.exe with stderr, stdin, stdout
redirected to pipes, and for some strange reason the 'Password:'
string is still displayed on the terminal and isn't read from the
pipes.....

it looks like cygwin as issue with inherited filedescriptor and by
some way a child can still access the parent filedescriptors.... even
if the child is in background

thanks and regards
JLM

--
KISS! (Keep It Simple, Stupid!)
(garde le simple, imb=C3=A9cile!)
"mais qu'est-ce que tu m'as pondu comme usine =C3=A0 gaz? fait des choses
simples et qui marchent, esp=C3=A8ce d'imb=C3=A9cile!"
-----------------------------
"Si vous pensez que vous =C3=AAtes trop petit pour changer quoique ce soit,
essayez donc de dormir avec un moustique dans votre chambre." Betty
Reese
http://www.grainesdechangement.com/citations.htm

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019