From: Davor Cubranic <davor@telus.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 21972@debbugs.gnu.org, Davor Cubranic <davor.cubranic@alumni.cs.ubc.ca>
Subject: bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD
Date: Wed, 16 Oct 2019 21:47:24 -0700 [thread overview]
Message-ID: <1571287644.13956.1@smtp.telus.net> (raw)
In-Reply-To: <CADwFkmmSBJWEO3CM1C1yc9B8BP=2zoL=Sadekpp0ekY7aMOt7A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]
I should have mentioned this in the report, but I believe this was, at
the time I filed it, a minimal example reproducing why using package
"exec-path-from-shell" [1] on FreeBSD caused Emacs to hang. (I had used
it on Mac, and then ran into the bug when I copied my .emacsrc to a new
FreeBSD machine.)
You can blame the package, or bash, or me for passing "-i" argument to
bash, but to me it looked like it was Emacs that was doing something
funny to the subprocess being executed to cause it to lock up -- and to
do this only on FreeBSD.
I can't reproduce this now because I don't use FreeBSD any more, and as
Eli said in the four years since the bug was filed both Emacs and Bash
have moved on, so feel free to close the report.
[1]: https://github.com/purcell/exec-path-from-shell
Davor
On Mon, 14 Oct, 2019 at 1:50 PM, Stefan Kangas <stefan@marxist.se>
wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> > If bash hangs, shouldn't that be reported as a bug in bash
>> instead?
>>
>> It's possible that your Bash is newer, and this bug was fixed since
>> then.
>
> True.
>
>> In general, it sounds like Bash tries to read from its stdin, and in
>> call-process that is... what? By contrast, by default we
>> communicate
>> with async subprocess via PTYs (on Posix hosts), which is what Bash
>> expects in an interactive session.
>>
>> IOW, I cannot understand why would someone call "bash -i" in a
>> non-interactive command.
>
> Indeed.
>
>> > Or should Emacs somehow do better with a hanging process?
>>
>> Like what?
>
> No idea, that's why I'm asking. But if you don't know either, then I
> guess that means that there is nothing to do here; and this is not a
> bug in Emacs.
>
> Best regards,
> Stefan Kangas
[-- Attachment #2: Type: text/html, Size: 2116 bytes --]
next prev parent reply other threads:[~2019-10-17 4:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-21 14:20 bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD Davor Cubranic
2019-10-14 19:55 ` Stefan Kangas
2019-10-14 20:09 ` Eli Zaretskii
2019-10-14 20:50 ` Stefan Kangas
2019-10-17 4:47 ` Davor Cubranic [this message]
2019-10-17 11:36 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1571287644.13956.1@smtp.telus.net \
--to=davor@telus.net \
--cc=21972@debbugs.gnu.org \
--cc=davor.cubranic@alumni.cs.ubc.ca \
--cc=stefan@marxist.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.