From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31038 invoked by alias); 5 Aug 2014 13:33:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31023 invoked by uid 89); 5 Aug 2014 13:33:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f52.google.com Received: from mail-la0-f52.google.com (HELO mail-la0-f52.google.com) (209.85.215.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 05 Aug 2014 13:33:43 +0000 Received: by mail-la0-f52.google.com with SMTP id e16so712205lan.25 for ; Tue, 05 Aug 2014 06:33:40 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.234.71 with SMTP id uc7mr4247629lac.22.1407245619935; Tue, 05 Aug 2014 06:33:39 -0700 (PDT) Received: by 10.112.221.197 with HTTP; Tue, 5 Aug 2014 06:33:39 -0700 (PDT) In-Reply-To: <53E0CC2D.4080305@cornell.edu> References: <53DB8D23.7060806@alice.it> <20140801133225.GD25860@calimero.vinschen.de> <53DEDBBA.20102@cornell.edu> <20140804080034.GA2578@calimero.vinschen.de> <53DF8BDC.8090104@cornell.edu> <20140804134526.GK2578@calimero.vinschen.de> <53E0CC2D.4080305@cornell.edu> Date: Tue, 05 Aug 2014 13:33:00 -0000 Message-ID: Subject: Re: (call-process ...) hangs in emacs From: Peter Hull To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00092.txt.bz2 On Tue, Aug 5, 2014 at 1:21 PM, Ken Brown wrote: > - pthread_mutex_init (&_malloc_mutex, NULL); > - pthread_mutex_init (&_aligned_blocks_mutex, NULL); > + pthread_mutexattr_t attr1, attr2; > + pthread_mutexattr_settype (&attr1, PTHREAD_MUTEX_NORMAL); > + pthread_mutexattr_settype (&attr2, PTHREAD_MUTEX_NORMAL); > + pthread_mutex_init (&_malloc_mutex, &attr1); > + pthread_mutex_init (&_aligned_blocks_mutex, &attr2); > pthread_atfork (malloc_atfork_handler_prepare, > malloc_atfork_handler_parent, > malloc_atfork_handler_child); Does there need to be a 'pthread_mutexattr_init' in there? I don't think that's the problem though... Pete -- 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