From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IBREGcLOWGSn5QAASxT56A (envelope-from ) for ; Mon, 08 May 2023 12:28:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SOlWGMLOWGTqawEAG6o9tA (envelope-from ) for ; Mon, 08 May 2023 12:28:18 +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 120C614A89 for ; Mon, 8 May 2023 12:28:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvy68-0000dQ-5O; Mon, 08 May 2023 06:28:04 -0400 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 1pvy66-0000dG-Hy for bug-guix@gnu.org; Mon, 08 May 2023 06:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvy66-0002bf-9B for bug-guix@gnu.org; Mon, 08 May 2023 06:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvy66-0005Nz-25 for bug-guix@gnu.org; Mon, 08 May 2023 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63190: [Shepherd] Nested calls lead to a hang Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 08 May 2023 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63190 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bruno Victal Cc: 63190@debbugs.gnu.org, bjc@spork.org Received: via spool by 63190-submit@debbugs.gnu.org id=B63190.168354165220661 (code B ref 63190); Mon, 08 May 2023 10:28:02 +0000 Received: (at 63190) by debbugs.gnu.org; 8 May 2023 10:27:32 +0000 Received: from localhost ([127.0.0.1]:39265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvy5c-0005NB-CE for submit@debbugs.gnu.org; Mon, 08 May 2023 06:27:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvy5a-0005Mx-L5 for 63190@debbugs.gnu.org; Mon, 08 May 2023 06:27:31 -0400 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 1pvy5U-0002V4-1l; Mon, 08 May 2023 06:27:24 -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=Q4Eju7TsfD7R4IuK1oqg8e3OXgF4VQ1aJ5ulXtr4nVI=; b=a+er/ey9anWt7xdbZ0P0 O2pfvuV2FRM1nJLnc/ljQGc2ojoH+/OwVtgQbmxQ1K9Nng9xy2f/0YhMKRatAFaKVBZ0rcvJ1SBKl vDnsU3/5PPq3F2Y9aDiYuEy80xPNf5iuCiBH+XBJk5X5nwCgI5RzJFxx3eSajIebkOdVqwgn2ePgi Lq76ztlniWF2iqHg0N3iB79Yjw+G81AopX1vJbSxchZwjz15D/JdC4AmTjv4ntD2B6FmdW7LGln3Q MO8LR6PrK/M7y3HqZtqQEF/na1JShQqVe8P44OVsiSOzjbw7irvQ2YaJvijjHfvXGVMTOVsH7PNmg Ed9jLCg1Dclanw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvy5T-0001kk-C4; Mon, 08 May 2023 06:27:23 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87wn1lid69.fsf@gnu.org> Date: Mon, 08 May 2023 12:27:20 +0200 In-Reply-To: <87wn1lid69.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 06 May 2023 19:26:38 +0200") Message-ID: <87fs87dson.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683541698; a=rsa-sha256; cv=none; b=Ril2QfAbSSd4zetsXlCv8yTOzEgJFc9uWW8VA0gY1tqNU0bYWphFy+6Af4a7ccDRxNwUE3 6Z7D/hvyENieDA9r/TMSiLLckNpnVFzJGJYEGHZk6v3jKPRZMSV/oGilbmbIYK30k9NDa1 G5ShgrNPBJQtMz/9gYxdca9/l+BATLusXmBmGhe6EOjtWLLtPlNKv7K8GxKYMBBjfOaEtm Z0V9Vkr4fBMX+txVCfzjsrTq8jRf15SfG5fBabECCAhMumujt+9N8rkn/gushvMldC7nQN wSbbkMrZV+WxXLozbE2bXnbntzmXX1PZW5A/oxnNFCvVDH4Hz1b72Eh+fsobvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="a+er/ey9"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683541698; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Q4Eju7TsfD7R4IuK1oqg8e3OXgF4VQ1aJ5ulXtr4nVI=; b=MpFQREk/6k0gLWEndMS6KtyLqDXkQo9dLJM2tHnJl+q/Gd+W/TxC2r94F0EtZeeRvYNyLQ kDWuQhQRc/2s+I8Mr3vo+PD30mroTYvPIxw03Y+N7Avjh9Zc9KLpu0rIDzEFVSaRn2EavQ 5a8Z393+p+2TWrAbxdZ/6Ca4CSfOrgMAv8NE+5IGncWoYGlTm5LGuhWwD29Eqf/FbP8SDC le9bvhhaZtQYGuVrTHRRHMp/imfxjZqLX0YSXXoiEcc1L75ANQqql5wemAWQo7oslxOGP6 6zzFQXA3lQ3EfyOYqGeOwoO4RYvayFcIXU0RM+L9mP1VJ5XzNIJPi0GtSzVuKg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="a+er/ey9"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.59 X-Spam-Score: -2.59 X-Migadu-Queue-Id: 120C614A89 X-TUID: sJeh0bdO3tIx Ludovic Court=C3=A8s skribis: > Bruno Victal skribis: > >> Original discussion (IRC): > > [...] > >> (procedure >> #~(lambda (x) >> ;; Scenario 1: using code from (gnu services herd), t= his hangs shepherd >> #;(start-service 'dummy) ; hangs shepherd > > (gnu services herd) provides a client to talk to the shepherd process. > However, the code of actions runs in the shepherd process itself, so > there=E2=80=99s no need to use the client library. Don=E2=80=99t do that= . :-) Also, the socket created in (gnu services herd) lacks SOCK_NONBLOCK so the code above is bound to block forever. Ludo=E2=80=99.