From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2706 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Guillermo Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: The "Unix Philosophy 2020" document Date: Sun, 24 Nov 2019 17:13:15 -0300 Message-ID: References: <20190831130730.ki6ma7i5curucowe@CasperVector> <20190901091157.bjtfhqq6d2rg75yo@CasperVector> <20190927083816.tectynx7dzlfcvb7@CasperVector> <20191012173743.drzlgnrw4hib6hh4@CasperVector> <20191117062644.lt6wfmqwijqqhc5w@CasperVector> <20191117072850.bokuozrpokvfq662@CasperVector> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13543"; mail-complaints-to="usenet@blaine.gmane.org" To: Supervision Original-X-From: supervision-return-2295-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Nov 24 21:12:43 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iYyFO-0003KD-P7 for gcsg-supervision@m.gmane.org; Sun, 24 Nov 2019 21:12:42 +0100 Original-Received: (qmail 23394 invoked by uid 89); 24 Nov 2019 20:13:07 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 23387 invoked from network); 24 Nov 2019 20:13:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=Wjz76HyJcGoFklmuaeQbtzeRiUUY9PJ8e2CyUvi2qTQ=; b=eSNafX7itmzz6SpV+HJYbdv1/YuUxDlbZBMfgStA41NiX3tLocaxmDd5Dp2xjTRI5J n1LbJ4J5OiQSGkkA4h3zrEF2keA8iZ0TT7zgWNPN5btBMkvJlk1LZhjJlcAuknyl4gAW voMevES0IiSFI8uot0T9GxnaazBbh22Y0a8exG/ky6O7V0WOe9ppYuW+tDa0yie/9WiS bMXBnHgH2vV957jcuOxosSLg47HOZlUjyzSLM4GHNfS2SW/LkkRNkTHzGo9Crhn7CD9E 82LNOLnPJHzhgjgV748rMPAtOct2QWG3/Lv37HRuCVKDAAEa5HOZyt0U9KMFjRSnVUie eDWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=Wjz76HyJcGoFklmuaeQbtzeRiUUY9PJ8e2CyUvi2qTQ=; b=E5lya6FJsVObq7LAJhzvRKPp1gKc2iHrdccb+6iSlQODknsrlKB6Hh8HNiAxR7bhaO dpl0UtjS0gFYHxFUAoVPXxZhUJM3r/a+LzimGD93gQ1lSPqIxDJ/hAy5bfE7z6mEXqF2 z8KPgJ3MHh6szTkxDyi1Ls3h20Ito4haaYv9nyf2OZ1Pra7fJqSR/TmATWNfAEL0nIA6 WyoD1CafcRGVbHTH7zsIXdgxXbsdWuqfdxZbPOHYUJIC91tfrN/nWmPvpSDFDDwNOdkw sy51TtCfrtlcXnwn3eyDvhfXNHwVTDrd2hydlWwkDp1bBGp4WY3zysBlJdcM18DLv0ul pCYg== X-Gm-Message-State: APjAAAUlql+Sk/fvyhfvuInmOytZZ+vrX4vhgWFb3KcjsJMQymn1jY95 DiDyo7U5Oj/l6e56j/EWLKvsqsjM7zsAnhWkbR5lww== X-Google-Smtp-Source: APXvYqzpO3fVSN24FuU/ZwSqAc3L9SfrB/Wn9l/UY2FV2pbX8rQGO9XhU9evi7A9FpSs8rhE07tq1OEwY6wTWQrmao4= X-Received: by 2002:a92:3cd7:: with SMTP id j84mr28922765ilf.29.1574626358538; Sun, 24 Nov 2019 12:12:38 -0800 (PST) In-Reply-To: <20191117072850.bokuozrpokvfq662@CasperVector> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2706 Archived-At: El dom., 17 nov. 2019 a las 4:28, Casper Ti. Vector escribi=C3=B3: > > A system proponent gave a remark about nosh's `move-to-control-group', > which appears, to some degree, justified: > Those are just two if statements 'sharing' a body for brevity. That deals with errors in the openat() and subsequent write() calls, for the file that controls cgroup membership. By displaying a message constructed in the same way in both cases, and then throwing an exception. *Shrug* As I understand it, throwing the exception is necessary. Not only does that transfer control directly to main(), destroying all objects with automatic storage duration in its way, but also main() is written in such a way that doing so makes the move-to-control-group process exit with the code contained in the exception object, rather than chain loading the next program. The error message could be optional, but I'm sure human users appreciate that there is one :) G.