Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A2665B2.43D8F436@redhat.com>
Date: Thu, 30 Nov 2000 15:35:30 +0100
From: Corinna Vinschen <vinschen@redhat.com>
Reply-To: cygwin <cygwin@cygwin.com>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Why does scp leave ssh running? -- select() never returns
References: <3A22C383.5C16BBC8@delcomsys.com> <3A25C7DA.6F76C8DA@delcomsys.com> <20001129224015.B21867@redhat.com> <3A266130.F5877EB5@delcomsys.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Patrick Doyle wrote:
> If that is the case, would anybody mind if I posted a (simple) patch to
> openSSH code which added a timeout to the call(s) to select()?  If I do
> that, will the patch be incorporated into the cygwin release of
> openSSH?  Is there some way to feed that patch back to the openSSH
> development team?

I am that way.

However, your patch should be clean in terms of OS handling.

I recommend using the already used construct:

#ifdef HAVE_CYGWIN
  if (! is_winnt)
    {
      ...your w9x specific code...
    }
#endif


The definition of is_winnt is used eg. in `cygwin_utils.c':

#define is_winnt       (GetVersion() < 0x80000000)

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.
mailto:vinschen@redhat.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

