X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48ED20F9.8080201@xs4all.nl>
Date: Wed, 08 Oct 2008 23:07:05 +0200
From: Bob van Loosen <loosen@xs4all.nl>
User-Agent: Thunderbird 2.0.0.17 (X11/20080925)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Memory leak with timer
References: <48EBDDF4.20503@xs4all.nl> <20081007232949.GA13962@ednor.casa.cgf.cx> <48EC02C3.9080403@xs4all.nl> <20081008020850.GA28332@ednor.casa.cgf.cx> <48ED154E.2040708@xs4all.nl> <48ED182C.9000907@cygwin.com>
In-Reply-To: <48ED182C.9000907@cygwin.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

Larry Hall (Cygwin) wrote:
> Bob van Loosen wrote:
>> Christopher Faylor wrote:
>>> On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote:
>>>  
>>>> Christopher Faylor wrote:
>>>>   
>>>>> This should be fixed in the next snapshot.  If you are looking for a
>>>>> workaround, specifically set the sigev_notify_attributes to
>>>>> PTHREAD_CREATE_DETACHED.
>>>>>       
>>>> Thanks, that fixed it.
>>>> Shouldn't PTHREAD_CREATE_DETACHED be default? That's what the 
>>>> opengroup.org site says.
>>>>     
>>>
>>> Maybe you need to reinvestigate the meaning of "fixed" and 
>>> "workaround"?
>>  From my point of view, the workaround fixed the memory leak.
>
> So if the workaround was the fix in your mind, why the follow-up
> question?  I think the point that's being missed here is that there
> was a way Chris found for you to move beyond the problem even without
> his fix.  But there was a problem that needed fixing so that the
> next person doesn't run into the same thing.  If that makes sense to
> you, then you've gotten all you can from this thread.
>

I was only curious why using a pthread_attr_t with the default 
attributes makes a difference.

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

