X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 13 Feb 2008 12:43:23 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: pthread_kill when sig is zero
Message-ID: <20080213174323.GA32034@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20080213142351.EB79477A89@ems008.s.etech.sk> <20080213165103.GB15445@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080213165103.GB15445@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Wed, Feb 13, 2008 at 11:51:03AM -0500, Christopher Faylor wrote:
>On Wed, Feb 13, 2008 at 03:23:51PM +0100, klement2 wrote:
>>
>>int pthread_kill(pthread_t thread, int sig);
>>
>>The posix function pthread_kill (in cygwin) does not perform error
>>checking when the argument sig is zero, though it should according to
>>standard.  It means ESRCH is not returned when the thread is not valid
>>(for example it exited before).
>>
>>Is it possible to correct this ?
>
>Yes.  I'll fix current CVS.
>
>Do you happen to have a simple test case which demonstrates this problem?

A new snapshot has been generated with the fix:

http://cygwin.com/snapshots/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

