X-Recipient: archive-cygwin@delorie.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:mime-version:date:message-id:subject:from:to
	:content-type; q=dns; s=default; b=sJGf+rRtNNNUm15/0feaLgU4utDUS
	98RlGb9EwWdx0N9+hPnYITgaCp3TiA9IxD06sc0WKtLsiq8Emp1WOo5qts7AyvVj
	QCamchPOTdDmbWDH/ntE+jsrDmeimDBfr2RVuvjjtCQ8VcXq/J0PTMzaxHLb1IQ1
	n0qPs55N+JwBdE=
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:mime-version:date:message-id:subject:from:to
	:content-type; s=default; bh=SzfbtQPaZ3GM+eaVxcnVPgxXAKk=; b=oYH
	+OqrWpd9BuQFynKn/9mbUfUKKV7LH0gfbaBSeVVNsWT10CheA+6ANjoULb/v+UWD
	e2J/xpzE32S5hgCCfjjwbQJV9bGClCR/VpJDcta+NooWCeu4AKhMC7/SU0XeRkf2
	ffELWPMy1Brpjz+1p/eskzzSjb/b3NO+bV1/fOqQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-we0-f169.google.com
MIME-Version: 1.0
X-Received: by 10.180.79.9 with SMTP id f9mr7059562wix.52.1401550141779; Sat, 31 May 2014 08:29:01 -0700 (PDT)
Date: Sat, 31 May 2014 23:29:01 +0800
Message-ID: <CAMv+u9JcRKFsORXEEXbtKx8VqMFc__LXJBpuaeL9C4pFsCd8HA@mail.gmail.com>
Subject: tmux failed and got the message: failed to connect to server: No error
From: Guan-Zhong Huang <imprazaguy@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

cygwin-1.7.29-2 is ok.
After updating to cygwin-1.7.30-1, I can't start tmux.

I find it is because when tmux tries to connect to the unix domain
socket that tmux server listens and tmux server hasn't started yet,
connect() fails but errno is 0, not "Connection Refused (111)". This
causes tmux to exit with error.

If you want to reproduce this bug.
tmux might work at the first time because the unix domain socket is not created.
But after that, tmux will fail due to incorrect errno.

Here's the strace I got:
cygwin-1.7.30-1:
   96 1063224 [main] tmux 4072 cygwin_connect: -1 = connect(5,
0x229780, 24), errno 0
cygwin-1.7.29-2:
   92 1054064 [main] tmux 3548 cygwin_connect: -1 = connect(5,
0x229780, 24), errno 111


Best regads,
Guan-Zhong

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

