From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 262E61381F3 for ; Wed, 24 Jul 2013 21:07:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DD65E0A4F; Wed, 24 Jul 2013 21:06:52 +0000 (UTC) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1BE69E09FF for ; Wed, 24 Jul 2013 21:06:50 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id l18so895488wgh.23 for ; Wed, 24 Jul 2013 14:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=edWqwuRx8OyF12mICRkNw2DF9tr4DASbOCqFdwPNsFw=; b=DAxJroIF/7zjumVYUIQHKSTyW9/h4iC117cUVaNpSAno8K114cl4+LYbCR33EdUkXn kq08ZTFvypuk92LVlhbpQ881uiHxfW7WVJ6xD37Eo6L9Y38GGKQB5PVqXywUpmDPmAjA A7IOR9MRoM5lX6CZ5jHe2zGTE6sGa+dPETkt7o1MPpooJHaRBzcjic/bxEe1cD6xkOnW 5IA2Q4ZzwX6ajvjFQla7wVFBhOL49Y3DDsujx3DXLGjL0RAASXsw26DHOL6q5z5vda5A kD0NaUarJSC0yy+EWF2ZMzy8q7fJYd/RxgGRY+QQTHdzP8Zii1DlWljdkEN1TSo9+GSz gKSA== X-Received: by 10.194.157.99 with SMTP id wl3mr28123693wjb.76.1374700009712; Wed, 24 Jul 2013 14:06:49 -0700 (PDT) Received: from [172.20.0.41] (196-210-127-138.dynamic.isadsl.co.za. [196.210.127.138]) by mx.google.com with ESMTPSA id x2sm8035672wif.3.2013.07.24.14.06.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Jul 2013 14:06:49 -0700 (PDT) Message-ID: <51F04153.1090109@gmail.com> Date: Wed, 24 Jul 2013 23:04:19 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130709 Thunderbird/17.0.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Re: Re: Fresh install and problem with net.* init.d script References: <81cd8b64fd20f43855a535a449411a58@drakonix.fr> <51EDA7DB.90900@gmail.com> <20130724021751.GB1792@rathaus.eclipse.co.uk> <20130724100237.2a6c6cae@hactar.digimed.co.uk> <51EFA0E9.3060803@gmail.com> <20130724175130.GB3786@rathaus.eclipse.co.uk> <51F02CDF.8050301@gmail.com> <20130724201800.GA4024@rathaus.eclipse.co.uk> In-Reply-To: <20130724201800.GA4024@rathaus.eclipse.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8b9af5a3-bada-4462-bab3-5438d869405a X-Archives-Hash: 31d7e80839638f7cccea8f61ef3b6514 On 24/07/2013 22:18, Steven J. Long wrote: > Alan McKinnon wrote: >> Peace and hugz OK? > > Definitely :-) > > "POSIX 4: Programming for the Real World" (Gallmeister, 1995) > "UNIX Network Programming vol 2: Interprocess Communications" (Stevens, 1999) > > iirc the first is on safari-online; you can download code from the second here: > http://www.kohala.com/start/unpv22e/unpv22e.html > > More here: > https://foss.aueb.gr/posix/ > > If you've not had the pleasure of W Richard Stevens' writing, you have a treat > in-store. I'd guess you guys have at least read some of the TCP/Illustrated series, > though. > > Regards, > steveL. > I'll look into those, but do take note those books are 14 and 18 years old - that's eternity in our world. Basics never change, details do. Some features are here for the long haul and I doubt anything will really change them: pipes, named pipes, unix sockets and things of that ilk. The real bugbear with IPC is people reinventing the wheel over and over and over to do simple messaging - writing little daemons that do very little except listen for a small number of messages from localhost and react to them. Use a generic message bus for that! It fits nicely in the grand Unix tradition of do one job and do it well, and few apps have passing messages around as their core function. Hand it off to the system, that's what it's there for. One day I might well do an audit of a typical server base system and count all the apps that have a hidden roll-your-own message process in place. I'm certain the results will be scary. -- Alan McKinnon alan.mckinnon@gmail.com