|
From: | Maxim Nikulin |
Subject: | bug#12972: [PATCH] Avoid regression in mailcap-view-file similar to Bug#44824 |
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 |
On 04/07/2021 20:49, Eli Zaretskii wrote:
From: Maxim Nikulin Date: Sun, 4 Jul 2021 20:37:24 +0700Sorry, 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.
[Prev in Thread] | Current Thread | [Next in Thread] |