Date: 20 Dec 2000 15:42:19 +0100 From: Assar Westerlund <assar@FreeBSD.ORG> To: Aled Morris <aledm@qix.co.uk> Cc: Matt Dillon <dillon@earth.backplane.com>, Jack Rusher <jar@integratus.com>, "Jacques A. Vidrine" <n@nectar.com>, Warner Losh <imp@village.org>, hackers@FreeBSD.ORG Subject: Re: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen .. Message-ID: <5ld7enduic.fsf@assaris.sics.se> In-Reply-To: Aled Morris's message of "Wed, 20 Dec 2000 11:25:36 %2B0000 (GMT)" References: <Pine.BSF.4.21.0012201120480.436-100000@kai.qix.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Aled Morris <aledm@qix.co.uk> writes: > On Mon, 18 Dec 2000, Matt Dillon wrote: > > > void * > > safe_malloc(int bytes) > > { > > void *ptr; > > > > if ((ptr = malloc(bytes)) == NULL) > > *(int *)0 = 1; /* force seg fault */ > > > Shouldn't you use "kill(0, SIGSEGV)" ? Why not err(3) or abort(3) ? /assar 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?5ld7enduic.fsf>