From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26497 invoked by alias); 6 Jun 2014 19:17:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26487 invoked by uid 89); 6 Jun 2014 19:17:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f179.google.com Received: from mail-ve0-f179.google.com (HELO mail-ve0-f179.google.com) (209.85.128.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 06 Jun 2014 19:17:23 +0000 Received: by mail-ve0-f179.google.com with SMTP id oy12so3785122veb.38 for ; Fri, 06 Jun 2014 12:17:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:content-type; bh=mO8hAMiCqNoP/nEOTfWlHZ45gD2B4vAQAWn1X/ibFSo=; b=VO24fxV/DddQOYYf7vVHr7mcqn/Mgx7RC/81VhJ/xJaqo8jzfScdSVBiGVX5ZAu0AO K2ZjTuxbsvS7/4SF+0SQOMl5tq47HE53qQRDG3W1cXp36L9rYs1+cYu+DVczQoDJZ4XC iiz47sWzdFPSIkwjfS/4dZmKYTOPoEaZBgMScUj71zLViIGJUhVDTQw7q3enyv0aTLmg /U8ZanXRMh2ltHzb43sMzp0RP0BEvBZwVPdm++SffQZpYlZtktTU7ybkQub5QZ785DYB 6Oj3maqcHIPyO7rubKuizIHmMxt3OLEY9DbKTZuncFBRfNFihRISRSiCBtR1SB7BEsIU vlKA== X-Gm-Message-State: ALoCoQn6Og4To5XsF/MBtJ5QnZo/GKa1NwbjsvyEXkAiePDgB++fJg2GmM04AJ8v8jb20aIza/NL X-Received: by 10.58.247.66 with SMTP id yc2mr7732827vec.13.1402082240533; Fri, 06 Jun 2014 12:17:20 -0700 (PDT) From: "Christoph H. Hochstaetter" MIME-Version: 1.0 Date: Fri, 06 Jun 2014 19:17:00 -0000 Message-ID: <53a161689fe4555b64fe37005831eb0e@mail.gmail.com> Subject: cygwin not setting errno on "Connection refused" errors To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00112.txt.bz2 >I just updated cygwin today, and I've noticed that errno is not being >set when there's a connection refused error. This appears to be true >for INET and UNIX domain sockets. > >For example: > >$ ssh -p 12345 localhost >ssh: connect to host localhost port 12345: No error > > >Notice how it reports "No error" instead of "Connection refused". > >I'm using version 1.7.30 of cygwin64. I don't remember what version I >was at before I upgraded. I can confirm that this happens to every application using connect(). errno always returns 0 if connect() returns < 0. strerror() then correctly says "No error". Worked in 1.7.29. Tested with 64 bit only. -Christoph -- 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