From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26357 invoked by alias); 2 Apr 2012 08:32:40 -0000 Received: (qmail 26347 invoked by uid 22791); 2 Apr 2012 08:32:39 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f42.google.com (HELO mail-pz0-f42.google.com) (209.85.210.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Apr 2012 08:32:25 +0000 Received: by dang27 with SMTP id g27so2315479dan.15 for ; Mon, 02 Apr 2012 01:32:25 -0700 (PDT) Received: by 10.68.135.40 with SMTP id pp8mr19639287pbb.13.1333355545412; Mon, 02 Apr 2012 01:32:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.44.5 with HTTP; Mon, 2 Apr 2012 01:32:10 -0700 (PDT) In-Reply-To: <4F744A05.20808@dronecode.org.uk> References: <4F744A05.20808@dronecode.org.uk> From: Craig Date: Mon, 02 Apr 2012 08:32:00 -0000 Message-ID: Subject: Re: Cannot launch ssh from X11 system tray icon To: cygwin-xfree Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-04/txt/msg00006.txt.bz2 On 29 March 2012 12:39, Jon TURNEY wrote: > On 23/03/2012 17:56, Craig wrote: > >> debug1: Sending command: xterm >> =A0 =A0 =A0 0 [main] ssh 2184 select_stuff::wait: WaitForMultipleObjects= failed >> debug1: channel 0: free: client-session, nchannels 1 >> select: Permission denied > >> >> So can anyone tell me why I get the select / waitForMultipleObjects erro= r? > > This error is coming from inside the select() emulation in the cygwin DLL= itself. > > I've no idea why this is failing, and apparently only when an ancestor is= the > X server. =A0You might want to ask about this on the main cygwin list, it= might > get the attention of someone with more insight. > > One thing to consider trying is that it might be something to do with the > environment inherited by processes started directly from the start menu, > rather than something specific to the X server, i.e. try starting your te= st > script directly from a start menu shortcut in a similar way to the X serv= er is > started... > > -- > Jon TURNEY > Volunteer Cygwin/X X Server maintainer Hi Jon, Thanks for getting back to me. So I can run this from the run box: C:\cygwin\bin\run bash -c "export DISPLAY=3D:0.0 ; /bin/ssh vulpix xterm" And I get an xterm. I have my XWin Server pinned to my start bar and so I made a shortcut with the above in it and pinned it to my start bar and the thing runs fine. Both use "run". I'm thinking it's to do with Windows permissions. Does The XWin Server do a process group change or something? Craig -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/