From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sE5PBwwwRGJqXQAAgWs5BA (envelope-from ) for ; Wed, 30 Mar 2022 12:25:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CF37AwwwRGIlZAEAauVa8A (envelope-from ) for ; Wed, 30 Mar 2022 12:25:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8C0FCD4AD for ; Wed, 30 Mar 2022 12:25:15 +0200 (CEST) Received: from localhost ([::1]:36680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZVVp-0003Q6-6U for larch@yhetil.org; Wed, 30 Mar 2022 06:25:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZVCs-0004AH-MN for guix-devel@gnu.org; Wed, 30 Mar 2022 06:05:38 -0400 Received: from [2001:470:142:3::e] (port=58600 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZVCr-0006an-Rk; Wed, 30 Mar 2022 06:05:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=2WrPQ9xUZ9UdCEqaN1mpOtsq4aIQqsIvNb4uRFc8atQ=; b=Q8JCZsVrkjcgcnShjOLt gNV6TGkQngOjCQZhd3uoetIbkGNBmB70v0iadchweuZx7419vzwMdRx5U6ku1l8Rik7XbakzJ5iM0 GYBB26ja7h3sPTDuKWan04FbQkmBkEWqkHD6JG3Q6Ir6xwAmUE01eg3nO3FRAOrDVY+BMC+nubMva 6ljWq04ilGnWmB3sGQx+yog2f9+lJBIGym3JoBfAwXwf2mRuvs30eG+K9igJ+SQPLtGrPMOt2qIWZ wSt+bfJIbG2oi2WX8tsy77BBsbFQjK8i9Zn6e980LBFQqVtROlVmhDMaWBnycizHKOm9g10Eb9rhC KRSZ7fGmCF4YwQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50553 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZVCp-0004nx-OL; Wed, 30 Mar 2022 06:05:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Attila Lendvai Subject: Re: The Shepherd on Fibers References: <87ee2sfg9d.fsf@inria.fr> <1078954f1707ac12bda6c935b42566cc04db09f1.camel@telenet.be> <87sfr0zzvw.fsf@gnu.org> <0294791d8ae67d04b38f16842bcc1b80f2612389.camel@telenet.be> <2i8aXvHXSwaDNifAcMqmlAcoo1y_oMzLTZWC9ZFHHjgD1W-VykpU2KZY_4VsRIsE6VGOOxeMnwHjuHWvG1wXcgf449p0oiRuno3OSScdJBQ=@lendvai.name> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Germinal an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 30 Mar 2022 12:05:33 +0200 In-Reply-To: <2i8aXvHXSwaDNifAcMqmlAcoo1y_oMzLTZWC9ZFHHjgD1W-VykpU2KZY_4VsRIsE6VGOOxeMnwHjuHWvG1wXcgf449p0oiRuno3OSScdJBQ=@lendvai.name> (Attila Lendvai's message of "Tue, 29 Mar 2022 15:29:55 +0000") Message-ID: <87o81nvjpu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648635915; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2WrPQ9xUZ9UdCEqaN1mpOtsq4aIQqsIvNb4uRFc8atQ=; b=TS2kC1msnOTZ5fReqWj7amjS4/0OafwrnpvycHXh9jRHOoGarY9TRUD5P2F5sPpTPKRjvs wYidoKY/1v+JjIdf1us8QX0WgsfO577F2RRfT3JpurJsvF91Qke5U04ikoZVt3e0RzHhU1 AiuDspHr0RWIvbTxn1tpyljVe2PissM3nLZLWvwCLkZQ2qeS6nrZljj+NDl+mi20El+Bzl EBbRvt43/x+5+8jptuMc7YR79WW/tg3SlGFhJUZChveeq7m1vqQEa3excpRgWGx0CFMC+d Wx9CQ7kMYS5XesX9znRAJEZHtIgIJ8ME0ABow2WGkwmy+mLhyS+l9/fxIC9jEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648635915; a=rsa-sha256; cv=none; b=K9H8G15DsCRk1ITQfOfQDKIlkSv8CeRNKg0D616T2aDZqk3sa27QFHuoA1WKeBTw8TTudH 9n/SAgQkjV2WSVZREKrTpW2g4cyeIYHkThWKUj5f/o310z7zzWO0RVRcuKUfAM6+0DppiH UPkJDBF+PjB/m6S7Pi6gH+yyzboICSuG0Qd48sCnHFer3xd6DTDY+1f8IIUlK838TeKEY4 Qc+2Fih1MVKWGbFdSuMbo/1C0qfdP74nk1JnEjqgzv2aV4osdsshlzDDT9H1F4gc6OZ6cq pUmEgNz10DK+ZPPoylTC1ge/gyoYsoguFb+v6jDQ6dfPM/iASWFZiNu7GI6Sbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Q8JCZsVr; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Q8JCZsVr; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8C0FCD4AD X-Spam-Score: -5.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: SktSBvMeZmkn Hi, Attila Lendvai skribis: > my first ever service has non-trivial work to do in the start GEXP, > and unsurprisingly, it has often ended up throwing an exception while > i subled along my learning curve. it's not caught by shepherd right > around the call to the start GEXP, and reaches a handler up higher > that ends up deleting the socket (and IIRC skipping the start of rest > of the services). Ah ha! I guess that can happen if the service is started right from the config file; it cannot happen if the service is started via =E2=80=98herd s= tart=E2=80=99 (because all the =E2=80=98start=E2=80=99 exceptions are caught and reported= early), or if it=E2=80=99s started from the config file but in a separate fiber with =E2=80=98start-in-the-background=E2=80=99. Ludo=E2=80=99.