Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2002 16:10:33 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Christian Weisgerber <naddy@mips.inka.de>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: LP64: (int)signal()
Message-ID:  <Pine.GSO.4.10.10207011608560.26890-100000@pcnet1.pcnet.com>
In-Reply-To: <afq8a8$cus$1@kemoauc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Jul 2002, Christian Weisgerber wrote:
> Mike Barcroft <mike@FreeBSD.org> wrote:
> 
> > You might want to get rid of the other misuse of `rc' above this and
> > just remove the variable.
> 
> The use of an gratuitous int variable rc to capture return values
> is rampant throughout this code.  In fact, not using it is something
> of a violation of the local style, but in the case of signal() I
> think it's justifiable because SIG_ERR is so much neater than
> changing rc to long and messing around with explicit casts.

How about eliminating signal() all together and using sigaction()?

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10207011608560.26890-100000>