From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0MKWCC2GoV9GLgAA0tVLHw (envelope-from ) for ; Tue, 03 Nov 2020 16:32:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OMx5BC2GoV9wMAAAB5/wlQ (envelope-from ) for ; Tue, 03 Nov 2020 16:32:45 +0000 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 DB77E9402B4 for ; Tue, 3 Nov 2020 16:32:44 +0000 (UTC) Received: from localhost ([::1]:36912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZzEh-0007oi-KK for larch@yhetil.org; Tue, 03 Nov 2020 11:32:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZzEV-0007ob-8n for guix-devel@gnu.org; Tue, 03 Nov 2020 11:32:31 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:60772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZzET-0005w1-6S; Tue, 03 Nov 2020 11:32:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=NUXKL1U1M9CE8mTMzH00KVXQ07wekLFlr3Gca1Bq2+4=; h=date:in-reply-to: references:subject:cc:to:from; b=e2VHsg2xkN2xqAr6BpB6t20nqBZD9fGDgQD9k iicJnEH6ogiTS6h9ttAh2KmfJoevXZQbHW7fEozgenVcAiqvOm6sqrOqZo6+MDULqSyGJA UlliRMJAHB/qSXKDp+Gxm0VmsNiVbGq/Ceem0McwGkhYuZUqF/ZZ5yjiLnCYKimcSqLOYR MMD4qOM8FwILCSR1s0yiE7NW2gZW8uInvBJyBKqXEmzoHg8tkOC9oBx2N8krnaRly+cPHu joUE7g///R9hqxrlL9J14VIpjWGf8CuGeKw6vW+1wFRfLuCgBzoeu6+sZBP2UylCoH9b+s QK4VULMjOa0DUN7AFOjZNN5+w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 8d3c4310 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Tue, 3 Nov 2020 16:32:21 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: John Soo , guix-devel@gnu.org Subject: Re: RFC: subcommand to pause/resume builds References: <87r1pbzixl.fsf@asu.edu> <87zh3yczss.fsf@gnu.org> In-reply-to: <87zh3yczss.fsf@gnu.org> Date: Tue, 03 Nov 2020 17:32:29 +0100 Message-ID: <87ft5q4d0i.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=e2VHsg2x; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.31 X-TUID: woeWz5ZpemKw --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ludo', Ludovic Court=C3=A8s =E5=86=99=E9=81=93=EF=BC=9A > First, note that the daemon is unaware of =E2=80=9Cpackages=E2=80=9D, it = only=20 > knows > about =E2=80=9Cderivations=E2=80=9D. Derivations have a (file) name, which can be matched with a regex=20 allowing one to, say, =E2=80=98pause libreoffice=E2=80=99. It works in pra= ctice.=20 I do this often & it's *extremely* convenient. Sometimes even necessary, because I have a habit of starting too=20 many builds ;-) It's nice not to lose 6h of work. Not every handy hack needs to be upstreamed though. =E2=80=98It's fugly=E2= =80=99=20 is a strong argument in Guixland, and I like that. However, this is FUD: > Last, you=E2=80=99d need to send SIGTSTP to the whole process group of=20 > the > build, like so (I think, haven=E2=80=99t tried): > > sudo kill -TSTP -123 > > where 123 is the =E2=80=9CSessionPID=E2=80=9D shown by =E2=80=98guix proc= esses=E2=80=99.=20 > However, doing > so may affect build results: processes in the build environment=20 > might > handle SIGTSTP specially, which can have side effects. It=E2=80=99s an > observable action. Kind regards, T G-R, now thinking about acronyms like =E2=80=98CRIU=E2=80=99 and what a=20 next-level hack would look like... --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX6GGHQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15SHIA/jrVrt99TAGr66gAg1Ai9mBGSN5EbC4YSYVHwLYx WlnyAQCaco2UpHYpgKfeZ07hF7ssYfHZVrbr8L+2EocsHExrBA== =G/6j -----END PGP SIGNATURE----- --=-=-=--