From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6668 invoked by alias); 31 May 2014 15:29:06 -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 6654 invoked by uid 89); 31 May 2014 15:29:05 -0000 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 Received: from mail-we0-f169.google.com (HELO mail-we0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 31 May 2014 15:29:04 +0000 Received: by mail-we0-f169.google.com with SMTP id u56so3333229wes.14 for ; Sat, 31 May 2014 08:29:01 -0700 (PDT) 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) Received: by 10.14.219.137 with HTTP; Sat, 31 May 2014 08:29:01 -0700 (PDT) Date: Sat, 31 May 2014 18:34:00 -0000 Message-ID: Subject: tmux failed and got the message: failed to connect to server: No error From: Guan-Zhong Huang To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-05/txt/msg00553.txt.bz2 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