From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id DGl7En0F42CgdwAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 15:13:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KJdvDX0F42CEKgAAbx9fmQ (envelope-from ) for ; Mon, 05 Jul 2021 13:13:33 +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 7DBC618949 for ; Mon, 5 Jul 2021 15:13:32 +0200 (CEST) Received: from localhost ([::1]:33036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0OPj-0003oX-4b for larch@yhetil.org; Mon, 05 Jul 2021 09:13:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0OPG-0003oD-32; Mon, 05 Jul 2021 09:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0OPF-0002LT-SN; Mon, 05 Jul 2021 09:13:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0OPF-0001Ta-Kt; Mon, 05 Jul 2021 09:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#12972: [PATCH] Avoid regression in mailcap-view-file similar to Bug#44824 Resent-From: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Mon, 05 Jul 2021 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12972 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: patch To: 12972@debbugs.gnu.org Received: via spool by 12972-submit@debbugs.gnu.org id=B12972.16254907665653 (code B ref 12972); Mon, 05 Jul 2021 13:13:01 +0000 Received: (at 12972) by debbugs.gnu.org; 5 Jul 2021 13:12:46 +0000 Received: from localhost ([127.0.0.1]:44418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0OOz-0001T7-Ol for submit@debbugs.gnu.org; Mon, 05 Jul 2021 09:12:45 -0400 Received: from mail-lf1-f45.google.com ([209.85.167.45]:41914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0OOw-0001Sm-KD for 12972@debbugs.gnu.org; Mon, 05 Jul 2021 09:12:44 -0400 Received: by mail-lf1-f45.google.com with SMTP id n14so32436788lfu.8 for <12972@debbugs.gnu.org>; Mon, 05 Jul 2021 06:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:subject:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S1M45sJT/UvxaVcmrd2GEFGFOpdIMSVK55GoBX5Xc3U=; b=Nn9UpGl8s+HhbCg1PiMfrJQniMq/jqomMoNKKpUbom7Y+D0dXUV6nOcfuXbRnIgDxs a886RfgI+0f04Ipr7Aaq0DBEYzlLuKD/M2pchvA/FGDHJ2mdPdsOBbE5uk1Yt2wEJQkj ESWzNk/jSlMjA8BRy/rYMPyv945Uh3OrPRBANRHy31YkHytIIroWvEq5Bw7VR+O2OPYM JJ6RUnGb3bySxPXJ3YT4S8OZtJDjUXvpcuKq6g+QgziyBfgEPo4ufQBvIGS/8ZsWpPNH eEgX/JuihkpgZCsogugd4dpzd0kf/KtlCgOjGXhC98Sruj8MBtLzUEaCTrjBZQarLRmM z7TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:subject:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S1M45sJT/UvxaVcmrd2GEFGFOpdIMSVK55GoBX5Xc3U=; b=ocLKPgavLy/VfqTGbvjkC/59RO+8lFLkgV2TTLelH1Iy76wdABYuU5S1QWxtCWvLnX vte0mTiqK0mpWAMDb88wRn3wAFSV/QWVZ2q31cP4jUnJksi+H2aQO8tio4yXyb/2M666 pa5MbKHnuFcW7QYLy59XeGTJwDIiO63vTUs+ik5QFa7Qaj44up/rVWeIB5/psXDcSE6w 7N7Co4TzL3jN9S2G8Is1vO+vX+hlMIeND71nMQ7zmNaw3NmA7aYD+1ySkpuw77ADkSOL J7PlsC+P7iaznTphIJLtWgIPxPNeNDQCKZFNfZz6HKFo3oIeRkusGlfJJHCVFuoypMY3 GZmQ== X-Gm-Message-State: AOAM530vIylXDBEF2gu4G4y/HwgsV/Ex5dKo2ok7WJ9zFIkXAWBm1WkK srQ6Wp0VG5jb+i0goaiJH6Bwor3UW/g= X-Google-Smtp-Source: ABdhPJzB75daR+Att9oDC9bIbIlp9sM+3LYL4xbS/qhXqKvexSa5uniir6czoSivYdsRI3p56mDR8g== X-Received: by 2002:a19:4916:: with SMTP id w22mr10926854lfa.374.1625490756377; Mon, 05 Jul 2021 06:12:36 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id z82sm555424lfa.55.2021.07.05.06.12.35 for <12972@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jul 2021 06:12:35 -0700 (PDT) From: Maxim Nikulin References: <87r1hmdqek.fsf__16088.3597027109$1622530682$gmane$org@gnus.org> <835yxtlw14.fsf__2546.8955327355$1625164803$gmane$org@gnu.org> <1ddf1c46-0a28-4a2d-cc40-094ff74ee0ac@gmail.com> <837di8ki24.fsf__46278.4886871063$1625229533$gmane$org@gnu.org> <831r8gk4m0.fsf__14172.0669272885$1625246977$gmane$org@gnu.org> <1825a6f3-0175-2d67-5608-41c9fb93889b@gmail.com> <83im1ripaz.fsf__31901.4239286602$1625313464$gmane$org@gnu.org> <83zgv2gpdq.fsf@gnu.org> Message-ID: <16b88d78-de85-75d8-4e37-fd56eef87522@gmail.com> Date: Mon, 5 Jul 2021 20:12:34 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <83zgv2gpdq.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625490812; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=S1M45sJT/UvxaVcmrd2GEFGFOpdIMSVK55GoBX5Xc3U=; b=rCujZjYSC0HfnmNEaYqs7QQA6gcvEcHdn6dx17vopTkA06XL2pn9lrJhTnEm8cPHioeD4w k1iQujWLdWPZcy+t1dlQGAXbplTSDGs6OcUiJRO84Z63Z6GVGKOcxA5mM7ty3c6QhA1zIT zmT/yWZ8hGupyozRommr1BSOBKeUH8lQOMu+B5egAci9U7fiPfXrCMmaEUlFcqOzpQgRKp LAg0iKkgybIJE2A9cu4rH0DZPSjJCBn5wSJEiV1OS4ZHXXv9U8zcxOeiZ5UXfx5M4pobF0 dc6TdvJ1UjzcFk4L2+tj5aOK+/52ndL4ve4WY3PFe1IxKEGstLM85ckUhaQLhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625490812; a=rsa-sha256; cv=none; b=YsymNI9vWKtU7SK2P1lULTPPzQvrZTdpGTx8XwmIRWpVOh7POE3xr/ctsYl1gz+PzC+rLw LokjMIG6kcdBVeqnoziJD36ie81wbHZuunVLtHwL90sJwZ8bNTcrXxDFJwwRCw1y68J1YO q0lz2ZwYHNvZ+Aw4cODCLtR2UgC7YDGpz+bNtrglDomRJOjRTgMtmtayxEeTl8L08bQBMw lI3a6700J3B5EVxxF5053vUAlHAhDEcsr6L0DmSwO1r6jkTTco7AZ3gFX7+B5P8bBTuk0M ieqOEHpR4i48XJZYhvis/x6LovwLKKOOWaolxGnVkSvvnmgd+2Qdo8SOLM5+8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Nn9UpGl8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Nn9UpGl8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 7DBC618949 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: DKUUoxYtwhtE By mistake I sent the message below as private one at first. However it actually does not add anything new to my previous comments to the bug. On 04/07/2021 20:49, Eli Zaretskii wrote: >> From: Maxim Nikulin Date: Sun, 4 Jul 2021 20:37:24 +0700 > > Sorry, I'm not sure I understand what this is all about. Are you > still talking about the patch you proposed? Yes, I am. It is about proper way to a launch viewer in `mailcap-view-file'. Original `start-process-shell-command' with 'pty connection type prematurely kills children of kde-open5 or gio open. With 'pipe connection type it or `make-process' might make emacs CPU hungry if a child decides to close stdout and stderr: >> #!/bin/sh >> exec 1>&- >> exec 2>&- >> sleep 30 and finally `process-file-shell-command' does not allow to report failure. Moreover you suspect another secret compatibility problem with 'pipe.