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 ms0.migadu.com with LMTPS id QPh5DAB3IGLxBAEAgWs5BA (envelope-from ) for ; Thu, 03 Mar 2022 09:06:24 +0100 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 OHwtBQB3IGLjKQEAG6o9tA (envelope-from ) for ; Thu, 03 Mar 2022 09:06:24 +0100 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 5E330392F4 for ; Thu, 3 Mar 2022 09:06:23 +0100 (CET) Received: from localhost ([::1]:55850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPgTd-00049i-Q4 for larch@yhetil.org; Thu, 03 Mar 2022 03:06:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPgTL-00049Y-DJ for guix-patches@gnu.org; Thu, 03 Mar 2022 03:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPgTK-00086H-NX for guix-patches@gnu.org; Thu, 03 Mar 2022 03:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPgTK-0007u6-IR for guix-patches@gnu.org; Thu, 03 Mar 2022 03:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54205] [PATCH Shepherd] Factor out a public CALL-IN-FORK. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Mar 2022 08:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54205 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54205@debbugs.gnu.org, Maxime Devos Received: via spool by 54205-submit@debbugs.gnu.org id=B54205.164629470630309 (code B ref 54205); Thu, 03 Mar 2022 08:06:02 +0000 Received: (at 54205) by debbugs.gnu.org; 3 Mar 2022 08:05:06 +0000 Received: from localhost ([127.0.0.1]:41368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPgSQ-0007sm-JC for submit@debbugs.gnu.org; Thu, 03 Mar 2022 03:05:06 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:53169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPgSO-0007s6-4o for 54205@debbugs.gnu.org; Thu, 03 Mar 2022 03:05:04 -0500 Date: Thu, 03 Mar 2022 08:04:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1646294697; bh=cZIVownahb7lNaIPN/wV0dgpQE/U6qCUhJNp6+TMHI4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=iYEPCa9bWB65mHq3ZGN5myDRycsGYJtzpzU4AoMONtZ2UluygVpRow2l4CPr41PQl 68vQ8UX+0Yhchu7OPHgOhG02NvKkCWwww37irHoOmBboPkpc+VvVWm8nK0OxwhJZES ubN1xhX9UUWQm5+1a7I0wW1xdvHhmEFYGNIkjAieYFefCMHNR90qJj7+nFKWlmJo8U Gmnd8BWDXvmWI+t0YPOjaSxY8Ch9s9HjsrYKAUu7IIGXQheGMKeEqZ/Qg4tXkxEXmf JGmuuYfQtTAFN/55MQDXYY1vz1slcTJjubwTOBm95HHtUe2bXf4eTXaE9DB0CoLBD3 TgoyLUc2l63Dw== From: Attila Lendvai Message-ID: In-Reply-To: <87lexs1gs9.fsf_-_@gnu.org> References: <20220301070615.21028-1-attila@lendvai.name> <87lexs1gs9.fsf_-_@gnu.org> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Attila Lendvai Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646294783; h=from:from:sender:sender:reply-to: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=cZIVownahb7lNaIPN/wV0dgpQE/U6qCUhJNp6+TMHI4=; b=gYtpIRooW2eVFnlRUyKd556ET/wRQr8oh6To3Ufto78s6CElWE+Lt/LQsinlpOt0Oo4IpR YtBgyPEcuDULZaiLw4HXUC8CEXOAyuq60kbxjllGwWN7XlUM+mjTbTqOfKH5llLA8D9TVM bEGQCdeAQ3w1aH2mNnqhR9HgDWxOcOSLwG2k3JEqOAWFdp1IV0SO4G5vhH3MloJU6cFtJ/ czP1Jjt+ojwD328OEg7Xlt41DWs0Ib8y603CIRZ1MVZH8hML25uKbXxunOFaPZ8huQenGj /r+9NlKTlXiDR+3Hwar/n3UVj9IIr8K5RW61r+GOTvuqgQElDEDvxAxB6BTVPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646294783; a=rsa-sha256; cv=none; b=f6Y4isJzDI6kVoQkvk8AIq+RR5yITtDvu7I4OpNZ/z9X7FkNkSeZjPjxLB7St5HzntFesZ M7RW2O3RFQz49gdbGJg02yBO/URBXXs7x8iL98KzyK2NzL/mql4DrKFha8wfQlTkF0CrdU IjZ2//2a2kbmlK8rgfpmGDiN8/tjmDbRrCu9At9m4oypXGNv8rk/CRHI9vjV2uOGcMakFt HkTgEyqxpvRFRqjPREeb0Uv/Ep5bA+oV4yXLry2sABaD1Qb+GkXQHFMMTQIT8r/Glio1Zp ecyV349Z6Se+eqavwzyaJ5Zvv16usOb9YNudADvq8UL+eahsm/XxuPq10bz4KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=iYEPCa9b; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=iYEPCa9b; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5E330392F4 X-Spam-Score: 0.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: RRo9Hc+VWrJr > > Support for other rlimits can be added on an as-needed basis. > > > > Alternatively, the argument could be generalised to a more general > > 'rlimit' argument: > > > > #:rlimits > > `((,RLIMIT_AS ,SOFT ,HARD) > > (,RLIMIT_NPROC ,SOFT ,HARD) > > (,RLIMIT_NOFILE ,SOFT ,HARD)) > > > > WDYT? > > This interface brings more flexibility, I=E2=80=99m all for it. FTR, i've filed this as a patch (with a test!). https://issues.guix.gnu.org/54215 -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CIt is a miracle that curiosity survives formal education. It is a = very grave mistake to think that the enjoyment of seeing and searching can = be promoted by means of coercion and a sense of duty.=E2=80=9D =09=E2=80=94 Albert Einstein (1879=E2=80=931955), 'Autobiographical Notes' = (1949), slightly paraphrased