From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OLzDBpsCWWTxGAAASxT56A (envelope-from ) for ; Mon, 08 May 2023 16:09:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kA27BpsCWWT25wAA9RJhRA (envelope-from ) for ; Mon, 08 May 2023 16:09:31 +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 D259F3AFBA for ; Mon, 8 May 2023 16:09:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw1Y2-00043h-Rg; Mon, 08 May 2023 10:09:06 -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 1pw1Xz-000434-PE for bug-guix@gnu.org; Mon, 08 May 2023 10:09:03 -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 1pw1Xz-00005L-Hp for bug-guix@gnu.org; Mon, 08 May 2023 10:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pw1Xz-0006lq-Ca for bug-guix@gnu.org; Mon, 08 May 2023 10:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63024: Guile's "sleep pipe" can leak into processes created by 'spawn' 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 14:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63024 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Cc: 63024@debbugs.gnu.org, 62334@debbugs.gnu.org, Greg Hogan , Simon Tournier Received: via spool by 63024-submit@debbugs.gnu.org id=B63024.168355493726000 (code B ref 63024); Mon, 08 May 2023 14:09:03 +0000 Received: (at 63024) by debbugs.gnu.org; 8 May 2023 14:08:57 +0000 Received: from localhost ([127.0.0.1]:41256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw1Xt-0006lE-Fj for submit@debbugs.gnu.org; Mon, 08 May 2023 10:08:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw1Xr-0006kj-6w; Mon, 08 May 2023 10:08:55 -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 1pw1Xl-0008V0-9T; Mon, 08 May 2023 10:08:49 -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=esKE/S8VGW0auwtHlYAcJHEZY6gEZqnG962tefhjwbs=; b=CBBGqaqZ3hXuRhlTfaCC ODrikCFyWgsDQL6qqDyahAViGru/uqdWmeYtKI+s1ZRsnqIpxYin1fJMs2XWyR6L5VdlUFPd6WSWY tqKhGhreFGjp5DNawtwJ14uzjPvPAJDuYIlAk08Bf72Uxsansx7TMPWhAxiRE2TtvHdy9Fu5Qfqx0 QPOMVq/TpkSfPZX6SeEWscM7t04PCdo1DBBLLmK2SXlwQg7t6y9gcOZpqVP5UAsLpZfc+VWUYSESd AXoM2phuNYK1JGvW+UCdRRbkiFjCxngMiRj+9A7zbdH17tFYwd4aN9exnH6Fm1Yp+Bp2sWKDirz7P bXZ5M221GJrE2A==; 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 1pw1Xj-0000Jh-Je; Mon, 08 May 2023 10:08:48 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87mt2l4whd.fsf@gnu.org> Date: Mon, 08 May 2023 16:08:44 +0200 In-Reply-To: (Josselin Poiret's message of "Fri, 5 May 2023 15:39:22 +0200") Message-ID: <87mt2edifn.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=1683554971; a=rsa-sha256; cv=none; b=AgBq9SjX4IbpnLECtzN+dMEe3BIr1N7SAxEhZQxPJlnynNf2PZAm6mCmOM8ZQuWfQ/KpPF pdK5sxJZqaJHsWXFFPfhh1TJYXb1cp5oRFXRjRreG76uFWqV+lIdF37l3Tt4zsvap+4r0f rcY0KKwjxO8YKOEujcPeK1L91CCzDEYNI00rFTIGqAI3eHHs0eCtj6BATg+Evk7M4A/sml oEUMrdnoMeRj9VxkKjonlOTeuAszPjiyQFVG40ara2jYalrbYvdBDv3QT+V/tt7hmyvBB4 YvDRrREz6FPnY+HZvFz/2LWD1/sxHzVcsxHYUCNMP0E3F5mnyY9Cxxven8RqrQ== 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=CBBGqaqZ; 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=1683554971; 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=esKE/S8VGW0auwtHlYAcJHEZY6gEZqnG962tefhjwbs=; b=ab/RJb5Y4tVkfkw7Oaf9QKUACysM8tZjCxpu9syZK29UxcOji73BYqATOovAfxiEM69ne/ zQizJmWHFiFAUmgEBWVQwOJ/0PYCkBhfWso705kVA0IDJs2fYh4/E6j/8wvFIh9SiYFzv9 9nLKFbmr6jW1FsO3tVtqEATy2sWaGO9uZHqEf5POlOm2jCLqhBQserwYGnWzdjkdIA220S Kepuy2jzrCj5lgEyBq4M2FSarZc52M8PQ+8CcBAakbGgFdQIwOq0NFLJbLuOtwNlvDk0WQ njpEaX8GCDMBACH/HoqD+vXkxf5OzjDJUDwvuKULBvfrSYG52WKh+W8eq/AvHg== 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=CBBGqaqZ; 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: -1.09 X-Spam-Score: -1.09 X-Migadu-Queue-Id: D259F3AFBA X-TUID: rndI8Sbs9Z0Q Hi Josselin, Josselin Poiret skribis: > Sorry for not noticing this thread sooner! Here's my take on it, a minor > variation but that's what I'd prefer tbh. Even nicer! Pushed to =E2=80=98main=E2=80=99 as two patches (I folded the = test along with the fix, for clarity) and with cosmetic changes to match GNU coding style for C. 36fd2b492 main origin/main Use /dev/null in 'piped-process' if port is no= t backed by a fdes. ccd7400fd Add error handling for spawn's posix_spawn_file_actions_adddup2. Thanks! Ludo=E2=80=99.