X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id AB74ADC05F2; Mon, 27 Jul 2015 13:53:42 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id EB1C9DC0160; Mon, 27 Jul 2015 13:53:41 +0000 (UTC) Date: Mon, 27 Jul 2015 15:53:38 +0200 From: Natanael Copa To: Christoph Lohmann <20h@r-36.net> Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] udev replacement in Alpine Linux Message-ID: <20150727155338.285cae20@ncopa-desktop.alpinelinux.org> In-Reply-To: <20150727105017.1698E1025EECC@r-36.net> References: <20150726103211.3A0FF1025EE9D@r-36.net> <20150727120744.4ffdfa0b@ncopa-desktop.alpinelinux.org> <20150727105017.1698E1025EECC@r-36.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 27 Jul 2015 12:41:39 +0200 Christoph Lohmann <20h@r-36.net> wrote: > Greetings. Hi. ... > > Here is what I have been thinking, and what came out of a long > > discussion on busybox mailing list. > >=20 > > Implement the netlink daemon as a socket activator. When there is a new > > event, fork/exec the handler and pass over the socket. > >=20 > > The handler reads the events from the socket and handles them. Set a > > timout on the socket and exit when there are no events withing one or t= wo > > seconds. The socket activator takes over again. >=20 > Processes and sockets are cheap in Linux. There is no need for this com* > plexity. Keep it simple. Sockets are cheap. Spawning new processes is not. I do want avoid forks during bootup. > You will have more problems by adapting to the dbus herd. There long* > running daemons are the norm. But that*s a different topic which might > get addressed in the future either by the demise of the developers of > that crappy services or by having yet another important part of Linux > (Bluetooth anyone?) depending on such a false design. >=20 > > I have this implemented, based on nldev code: > > http://git.alpinelinux.org/cgit/user/ncopa/nlplug/tree/ >=20 > These are simple changes. You could have sent me the patch for nldev in* > stead of splitting it up again and creating a blackhole in juridical > questions by adding a half*baked license line. Now there*s another > project. As I recommended, all of this should be now done under smdev at > suckless.org. I originally wanted to keep the busybox implementation since we use busybox anyways. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---