From owner-freebsd-stable@freebsd.org Thu Mar 3 02:23:41 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5940AAC107C for ; Thu, 3 Mar 2016 02:23:41 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B22D1B23 for ; Thu, 3 Mar 2016 02:23:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id u232NWfB020897 for ; Wed, 2 Mar 2016 18:23:39 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: <20160303015011.GB7329@neutralgood.org> References: <38daa5ebf8d9d06b5595ff8da54cc18c@ultimatedns.net> <4d19e06d7d2c32801a10011cbd46e2e7@ultimatedns.net>, <20160303015011.GB7329@neutralgood.org> From: "Chris H" Subject: Re: Why must X open TCP by default? Date: Wed, 02 Mar 2016 18:23:39 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 02:23:41 -0000 On Wed, 2 Mar 2016 20:50:11 -0500 kpneal@pobox.com wrote > On Wed, Mar 02, 2016 at 02:54:53PM -0800, Chris H wrote: > > #!/bin/sh - > > /usr/local/bin/startx -- -nolisten tcp > > > > exit > > > > which seems to get the job done, and allow me to be lazy > > at the CLI. :-) > > Personally, I'd go with: > > #!/bin/sh - > exec /usr/local/bin/startx -- -nolisten tcp > > Because then I have one fewer processes running cluttering up my ps listings, > and because the exit code from startx will now naturally be picked up by > the parent program. What if, for example, startx crashes? Your script > will hide that fact. With exec no information is lost. Crap. Good point(s); points I should have already recognized. I'm apparently not firing on all cylinders today. Thanks, Neal, for taking the time to give me a Wake Up call! :-) > > -- > Kevin P. Neal http://www.pobox.com/~kpn/ --Chris