From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OLGKNorHFmAeOAAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 15:06:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SJpZMorHFmAsbwAA1q6Kng (envelope-from ) for ; Sun, 31 Jan 2021 15:06:50 +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 3054794021E for ; Sun, 31 Jan 2021 15:06:50 +0000 (UTC) Received: from localhost ([::1]:52652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6EJN-00088p-6R for larch@yhetil.org; Sun, 31 Jan 2021 10:06:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6EIc-00088T-Nx; Sun, 31 Jan 2021 10:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6EIc-0002wh-Gf; Sun, 31 Jan 2021 10:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6EIc-0003iE-B1; Sun, 31 Jan 2021 10:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44824: 27.1; Org export as pdf and open file does not open it Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sun, 31 Jan 2021 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44824 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: moreinfo To: Maxim Nikulin Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.161210554714243 (code B ref 44824); Sun, 31 Jan 2021 15:06:02 +0000 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:05:47 +0000 Received: from localhost ([127.0.0.1]:57671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EIM-0003hf-Jx for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:05:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EI8-0003h9-K6 for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:05:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34013) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6EI3-0002iN-FD; Sun, 31 Jan 2021 10:05:27 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1152 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6EHo-0006gN-Kc; Sun, 31 Jan 2021 10:05:26 -0500 Date: Sun, 31 Jan 2021 17:05:37 +0200 Message-Id: <83y2g96ta6.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Maxim Nikulin on Sun, 31 Jan 2021 18:15:27 +0700) References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> 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: 44824@debbugs.gnu.org, gbiotti@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 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: 3054794021E X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: tCCFAPPueWYC > From: Maxim Nikulin > Cc: Eli Zaretskii , gbiotti@gmail.com > Date: Sun, 31 Jan 2021 18:15:27 +0700 > > Now I see that the problem with eshell is the same. I am not familiar > with eshell, but it creates new shell process for every executed > command. Actual handler is killed when underlying handler (kde-open5, > "gio open") and thus xdg-open and the main shell process exit. What do you mean here by "actual handler" and "underlying handler"? > Functions dealing with asynchronous processes in emacs, namely > (start-process ...) and its siblings for shell commands calls > (make-process :connection-type 'pty ...) that creates a pseudoterminal. > It is redundant for applications that do not require an interactive > terminal. When process (xdg-open this case) exits, pty is closed, all > processes from the same terminal group receives SIGHUP. So actual > handler is killed unless it has set signal handler or has detached from > terminal session. > > To fix the problem it is better to use (make-process :connection-type > 'pipe ...) that unfortunately has no higher level wrappers. Wouldn't it work to let-bind process-connection-type to nil around the function that starts the async subprocess? And I still don't understand why some people (like Lars) cannot reproduce the problem at all -- the issue sounds like something that should fail deterministically on any GNU/Linux system. What am I missing?