X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:mime-version:date:message-id:subject:to :content-type; q=dns; s=default; b=pvIJ2ZN32G0USHkaJaOdOPBe9Srls HfFYsZeYUIF7x0bn0B9CBesEIt3rmfCosjZ7QB3qcYM/g7NaGlTGIDT0bSzp99Wq +uyRH1b5SYytNJ/GZ+Mlz2+CQIsY2CAPsg2A8AXkzXu8WgCW9byySL+JyDzcPjb0 Fr0TiD1N/3Ek0g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:mime-version:date:message-id:subject:to :content-type; s=default; bh=oiWeug6mpS7SEQ0+nVJY7KezP38=; b=jyS aHpewhNlBwoa2KRNIroe6TKaohrgCcVwbjkerj1/EC6NZEk1HIiGrYdgFw/Fb2NN h2N5yhGzXhO7eogNjikG+lpiyyzLa5CvOmRWDPL/usf6iayd2grYQq6swAR1K/Wh cxaGPAR++7M6Jtw8qwZmREOBnXI0E3QJTrifbN0M= 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 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 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, 6 Jun 2014 21:17:19 +0200 Message-ID: <53a161689fe4555b64fe37005831eb0e@mail.gmail.com> Subject: cygwin not setting errno on "Connection refused" errors To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes >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