From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8OZmJtOenWWbAAEAkFu2QA (envelope-from ) for ; Tue, 09 Jan 2024 20:30:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UHajItOenWWCCgEA62LTzQ (envelope-from ) for ; Tue, 09 Jan 2024 20:30:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=iLIDltIh; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704828627; 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=5uKOpPiCi05aomz2jy/QbXl1ElXrYl24Djcvm2meEOE=; b=knIyDP+3O3lnTFGXp5dS4BnaJ0zh09LXYYylRvD4CGEbtKi7DxW8TECheHJtZmdQQRjZA+ zvoQL5LjjNKkxBgjt2G4ukmc9PIeP0gZn9VDGVPT4i/xD9QZuN+AvycE8PV1OC3AMHaNUW 9jEBEbSuKI4rlJD807GCdOLhYcUTpTQGYRTgoyvl2i5ZcHEYQmVTtFnvOnpjzl1clLQQQV eihiNVLXTf9kmMtYYOrm3Wl4GAFB8BV5Yk39i3eFjsEnlRqgmUYsXtp24xiekzCxLwfKnU 1yiAGORF3T3iTdfULfAZIHu0XLgvfxyr6EQUke2VNzA6/4AoIglDxWWscx517A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704828627; a=rsa-sha256; cv=none; b=TbWYpkf5xeGSALQC3u9ItxDNBD/YnqOPnfY6O1wUPXmNC4+5cQSrVaUlcJ5U1EAwoIUw54 xLFHj7axAzSHs6SsiVUcrYf6jzKuxqZLQR8M/8WCtY/jLGPKOCoFbyq1+WiB6knqDtBiuX e1mwo67wtQ3l0lilby/qdlVunMvK9UVrz0FypDVHA+imuwUzENa+xubXBXXS+RsinmWU5c sBtro8KK8vxcoTP3E1nhG1JwlXR1VXLMHPPlwySr6xQcFbVrEPK95uwKrfYPVq0ktetMMI wrpP9xYPVxZePA67BNAcL4ox/fVLBUABWM0Qlsv0DaYWpnCt60kbntgZKeoJmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=iLIDltIh; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 6C83E1F133 for ; Tue, 9 Jan 2024 20:30:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNHnW-0002E4-HY; Tue, 09 Jan 2024 14:30:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNHnQ-0002Cx-Ls for guix-devel@gnu.org; Tue, 09 Jan 2024 14:29:56 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNHnQ-0006Su-6r; Tue, 09 Jan 2024 14:29:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=5uKOpPiCi05aomz2jy/QbXl1ElXrYl24Djcvm2meEOE=; b=iLIDltIhlg3dPon8R6NE 92g3dvDt8Wvb+GBHlB41zdDBbYqxwa5TeR0Nd6kNFw2cU8fgzBnlu66FxSc+DmvpDe+vuatdwuD+p iqtkPv59ekWnSwoV6FGIdwBKDtgIOloearzDbKCSQ5zM3aun67og2sS8lM9P7mfyv7ewEm7mztxhd P+hreUltYtMk8Bp6ezBZ5O74Xto+Zj5Oq1hnYQaISLWF+lZYR1kZotTCq1z40rTMUqpcdePbVeK6E MhWY1wxoBtzKxlvx+fwCa/HJcpkwcLzJ225QSsQcuPr/KH1pemHQgnP/HT3FNWKVer2yh2POFbeh+ cEB/Bcc0XlyZfg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Attila Lendvai Cc: guix-devel Subject: Re: shepherd, fibers, and signals (asyncs) In-Reply-To: (Attila Lendvai's message of "Fri, 15 Dec 2023 22:03:21 +0000") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 20 =?utf-8?Q?Niv=C3=B4se?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Van 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: Tue, 09 Jan 2024 20:29:50 +0100 Message-ID: <87bk9uz4nl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.17 X-Spam-Score: -9.17 X-Migadu-Queue-Id: 6C83E1F133 X-Migadu-Scanner: mx12.migadu.com X-TUID: 9WdX8CZHp/3k Hi Attila, Apologies for the delay, I=E2=80=99m seeing this just now. Attila Lendvai skribis: > posix signal handlers are async, and shepherd uses the fibers API from > inside signal handlers, specifically in at least handle-SIGCHLD. Shepherd has two modes: =E2=80=98signalfd=E2=80=99 on Linux, and Guile sign= al handlers elsewhere (=3D GNU/Hurd). The latter sucks for many reasons and was plain untested until recently because GNU/Hurd support had been lost (Fibers used to be Linux-only). The behavior on signalfd-less systems is now fixed in 0.10.3, though in suboptimal ways. At a fundamental level, we should fix signal handling in Guile and Fibers to avoid race conditions. (And get =E2=80=98signalfd=E2=80=99 on th= e Hurd. :-)) HTH! Ludo=E2=80=99.