From owner-freebsd-hackers Sun Aug 12 11:25:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 7CD0E37B40B; Sun, 12 Aug 2001 11:25:38 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id VJS59135; Sun, 12 Aug 2001 21:25:17 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.5/8.11.5) id f7CI2Om01604; Sun, 12 Aug 2001 21:02:24 +0300 (EEST) (envelope-from netch) Date: Sun, 12 Aug 2001 21:02:24 +0300 From: Valentin Nechayev To: Daniel Eischen Cc: Michael Robinson , hackers@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: _sigprocmask in malloc.c causes full file table? Message-ID: <20010812210224.B864@iv.nn.kiev.ua> References: <20010812214608.A2701@elephant.netrinsics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from eischen@vigrid.com on Sun, Aug 12, 2001 at 10:29:53AM -0400 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sun, Aug 12, 2001 at 10:29:53, eischen (Daniel Eischen) wrote about "Re: _sigprocmask in malloc.c causes full file table?": > sigprocmask() behaves the same as pthread_sigmask(). pthread_sigmask() > needs to obtain the current thread. In obtaining the current thread, > the threads library must be initialized. In initializing the threads > library malloc() is called. Wash, rinse, repeat. > > Don't put _sigprocmask() in malloc. One can use sigprocmask() in malloc() after thread library initialized. But set of signals to block in malloc() is too application-dependent than to use such approach without bad side effects. Signal unblocking windows during event cycle seems more productive. /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message