Date: Fri, 10 Aug 2001 21:03:48 -0500 From: Alfred Perlstein <bright@mu.org> To: Michael Robinson <robinson@netrinsics.com> Cc: current@freebsd.org, hackers@freebsd.org Subject: Re: _sigprocmask in malloc.c causes full file table? Message-ID: <20010810210348.T85642@elvis.mu.org> In-Reply-To: <200108110115.f7B1F4100321@netrinsics.com>; from robinson@netrinsics.com on Sat, Aug 11, 2001 at 09:15:04AM %2B0800 References: <200108110115.f7B1F4100321@netrinsics.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Michael Robinson <robinson@netrinsics.com> [010810 20:17] wrote: > I'm currently trying to deal with the problem where malloc/free in a > signal handler will crash (in my case, the X window server) if a signal > arrives during malloc or free. Yes, you are not supposed to call malloc/free from a signal handler unless you know exactly what you're doing when you do so. > Am I doing something completely boneheaded, or is this an undocumented > subtle interaction? You're expecting calls to free/malloc to work from within an async signal handler, so yes, you're being a bit boneheaded. :) -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010810210348.T85642>