X-Recipient: archive-cygwin AT delorie DOT 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 User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Memory leak with timer References: <48EBDDF4 DOT 20503 AT xs4all DOT nl> <20081007232949 DOT GA13962 AT ednor DOT casa DOT cgf DOT cx> <48EC02C3 DOT 9080403 AT xs4all DOT nl> <20081008020850 DOT GA28332 AT ednor DOT casa DOT cgf DOT cx> <48ED154E DOT 2040708 AT xs4all DOT nl> <48ED182C DOT 9000907 AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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/