From owner-svn-src-all@FreeBSD.ORG Mon Feb 22 11:27:48 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49372106568B; Mon, 22 Feb 2010 11:27:48 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 245DC8FC0A; Mon, 22 Feb 2010 11:27:48 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id B01A046B17; Mon, 22 Feb 2010 06:27:47 -0500 (EST) Date: Mon, 22 Feb 2010 11:27:47 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Ulrich Spoerlein In-Reply-To: <201002212103.o1LL3FGS037889@svn.freebsd.org> Message-ID: References: <201002212103.o1LL3FGS037889@svn.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r204178 - head/games/fortune/fortune X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 11:27:48 -0000 On Sun, 21 Feb 2010, Ulrich Spoerlein wrote: > Prefer exit(0) from main over return(0). > > Although not explicitly mentioned in style(9), it allows for easier > grepping of exit points. This reverts part of r203926. A few people (including me) have tripped up over exit handling and style in the past. It might be nice to formulate some specific sentences about program exit paths, functions, and also return values, to put in the style guide. For example, we have sysexits(3), but my understanding is we prefer not to use it. Likewise, we do like to use err()/warn() in preference to perror() and exit(), etc. Robert