Date: Thu, 21 Dec 2000 11:29:54 +0000 (GMT) From: Aled Morris <aledm@qix.co.uk> To: Peter Seebach <seebs@plethora.net> Cc: hackers@FreeBSD.ORG Subject: Re: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen .. Message-ID: <Pine.BSF.4.21.0012211126240.2463-100000@kai.qix.co.uk> In-Reply-To: <200012201528.JAA15116@guild.plethora.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Dec 2000, Peter Seebach wrote: >In message <Pine.BSF.4.21.0012201120480.436-100000@kai.qix.co.uk>, Aled Morris >writes: >>Shouldn't you use "kill(0, SIGSEGV)" ? > >Gratuitously verbose! > raise(SIGSEGV); > >(To be fair, raise(SIGSEGV) is quite likely to just jump to the segfault >handler without actually setting any signal bits, but who can tell?[*]) From /usr/src/lib/libc/gen/raise.c: int raise(s) int s; { return(kill(getpid(), s)); } which raises an interesting difference between my "kill(0," and the probably more rigourously correct "kill(getpid()," in the context of trying to emulate the effect of "*(int *)0 = 1". Aled -- nic-hdl:AWM1-RIPE 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?Pine.BSF.4.21.0012211126240.2463-100000>