From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iFv+Jy4k42CZrwAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 17:24:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QJamIy4k42BzAgAAbx9fmQ (envelope-from ) for ; Mon, 05 Jul 2021 15:24:30 +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 EE1AC120B6 for ; Mon, 5 Jul 2021 17:24:29 +0200 (CEST) Received: from localhost ([::1]:41074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0QST-0008Cn-1f for larch@yhetil.org; Mon, 05 Jul 2021 11:24:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0QS2-0008CP-Ln; Mon, 05 Jul 2021 11:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0QS2-0005fz-ES; Mon, 05 Jul 2021 11:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0QS2-00043D-Bt; Mon, 05 Jul 2021 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#12972: [PATCH] Avoid regression in mailcap-view-file similar to Bug#44824 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Mon, 05 Jul 2021 15:24:02 +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: Maxim Nikulin Received: via spool by 12972-submit@debbugs.gnu.org id=B12972.162549863715559 (code B ref 12972); Mon, 05 Jul 2021 15:24:02 +0000 Received: (at 12972) by debbugs.gnu.org; 5 Jul 2021 15:23:57 +0000 Received: from localhost ([127.0.0.1]:46467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0QRw-00042t-N7 for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:23:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0QRu-00042d-VT for 12972@debbugs.gnu.org; Mon, 05 Jul 2021 11:23:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40806) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0QRp-0005Wk-MY; Mon, 05 Jul 2021 11:23:49 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0QRp-0003A2-9G; Mon, 05 Jul 2021 11:23:49 -0400 Date: Mon, 05 Jul 2021 18:23:54 +0300 Message-Id: <83eecchjhx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <16b88d78-de85-75d8-4e37-fd56eef87522@gmail.com> (message from Maxim Nikulin on Mon, 5 Jul 2021 20:12:34 +0700) 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> <16b88d78-de85-75d8-4e37-fd56eef87522@gmail.com> 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: , Cc: 12972@debbugs.gnu.org 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=1625498670; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc: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; bh=oAKFJ+onMiJt6ZMRWnQSB1ckbMyvjVQqRDYH2So4jq0=; b=WX1vdVj5pEbr43xXocZ260RL3nEtwwEh+nW0iMgA4qkZFEeGwchAhTt2m2j8Qz5rJ2838j zFlNF2qGVrGiqrlJJ2bRlSvfoV6fsOZhSqx/fJ9QcQMzHVBEB7Tc56urrGqw0P4cW8Oe9+ Qh94Ip8cW28BotoFKcN1OEPQGqKsV4csh77dNYY4Qfmx0QAeo91B4MGo2r8Gq+kp51Vu8O YeFP+F7FAgRWSmuS/XmvaMOY0zDRLyo7tVvHs26ifW9tNzl/qLpxNWllM6qc+lvzsusLJa VmjBLsdloOwdl9hG8WsGj5vwylMNxUPlNdUe0Em8/MLg45h1eRmo3UFBnCZIEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625498670; a=rsa-sha256; cv=none; b=MDzRbK9LBkINK+8Xcin8GAFwLFSw0qObc92afcpcIKtU4kRoQE6Rfx4cm9nZXK90VkLBqv KgEjijmW8+5aRInXib/nNLhIjmzkbiDRcMD+YGfdpXeY6J+Kjgo5njv66+D/CCEwoQje3n /bdZHDx5nAsUuJgKs6FftYIoyi9UtmGZay+ZLtdDO394gjqL/67FGaO/0DhSD8v2PnItA3 QGjnhnU5heYzAjwLOfzTUwXVf7xnPJ/HYxIE2zPjjBsNTzgPhg+CGTuXNKmt9DxbM5FJ/L a6ciGiE6g1USX5L/XvVwwHnY8eFBqrm/ifRbRMIVm07ep0umEuy/1wnYPxIOgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: EE1AC120B6 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: GDzIACApj4/u > From: Maxim Nikulin > Date: Mon, 5 Jul 2021 20:12:34 +0700 > > 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 Is the above something a file viewer is likely to do? And if it does, how would you suggest to countermand that? > and finally `process-file-shell-command' does not allow to report > failure. The original code uses start-process-shell-command, and I don't think I understand why you wanted to call process-file-shell-command instead. Can you explain?