X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 28 Jan 2011 12:43:36 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: pthread_cancel+pthread_join problems when a thread executes "accept" TCP function Message-ID: <20110128114336.GW28470@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Jan 27 20:25, jdzstz - gmail dot com wrote: > I have detected an issue with pthread_join when the thread is > executing "accept" TCP function. > > If a thread is blocked in an accept TCP call, and a "pthread_cancel" > and "pthread_join" are called from parent, in cygwin, the > "pthread_join" is blocked forever until "accept" ends (that maybe > never end) so the program gets blocked forever. In Linux and Solaris, > it works fine (see below) Thanks for the testcase! I applied a patch to Cygwin which should fix this for all socket functions which potentially block. Please test the latest developer snapshot (create today) from http://cygwin.com/snapshots/ Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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