From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24439 invoked by alias); 19 Nov 2004 02:09:54 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 23803 invoked from network); 19 Nov 2004 02:09:38 -0000 Received: from unknown (HELO serge.ecosm.com) (202.37.218.3) by sourceware.org with SMTP; 19 Nov 2004 02:09:38 -0000 Received: (qmail 32235 invoked by uid 503); 19 Nov 2004 02:09:36 -0000 Received: from sue.ecosm.com (HELO ?192.168.1.43?) (202.37.218.10) by serge.ecosm.com with SMTP; 19 Nov 2004 02:09:36 -0000 Message-ID: <419D55E3.2020202@ecosm.com> Date: Fri, 19 Nov 2004 02:09:00 -0000 From: Will Bryant User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: pthread_self inside thread procedure Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00154.txt.bz2 Hi all, With the new release, I'm finding that my threads can't detach; at the very start of the thread procedure, they do a pthread_detach(pthread_self()). This call is returning ESRCH, because while pthread_self() is returning a valid pthread_t structure, the first element of it is always NULL (the second member is consistently a fairly high number, eg. 2312903, but that may not have any significance). So, unless I'm missing something, it seems that pthread_self() is broken with the new release. Can others reproduce this problem? Best regards, Will -- Will Bryant Systems Architect, eCOSM. Phone +64 3 365 4176 | Mobile +64 21 655 443 http://www.ecosm.com/