Why must X open TCP by default?
bsd-lists at bsdforge.com
Thu Mar 3 02:23:41 UTC 2016
On Wed, 2 Mar 2016 20:50:11 -0500 kpneal at 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/
More information about the freebsd-stable