[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Short explanation for & in key ! of dired
From: |
Stefan Monnier |
Subject: |
Re: Short explanation for & in key ! of dired |
Date: |
Wed, 25 Jun 2008 14:52:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> To achieve this I today have to do this in dired:
>> ! gimp ? & RET
> Speaking of Gimp, and going a bit off-topic here, can anyone explain
> why I cannot seem to run gimp-remote in the same fashion? I do this:
> ! gimp-remote ? &
> And it finishes right away without opening Gimp. The only way I can
> start it is by doing:
> ! gimp-remote
> But for some reason that locks up Emacs, although that does not happen
> if I run it from Bash.
> Is this an issue in gimp-remote, Emacs, or a combination?
My guess is that gimp-remote does a "fork&exit" and then does its task.
So "gimp-remote ? &" fails because as soon as the async process exits,
Emacs will close the pipe to that process, which is apparently kills the
forked process as well.
And inversely "gimp-remote" fails to terminate because Emacs's sync
processes wait for the proces to close stdin&stdout, but the forked
process still running doesn't close them, for some reason.
Hopefully we can make Emacs behave more like regular shells, but I don't
know enough about Unix process programming to fix it. Any taker?
Stefan
- Re: Short explanation for & in key ! of dired, (continued)
- Re: Short explanation for & in key ! of dired, Miles Bader, 2008/06/25
- Re: Short explanation for & in key ! of dired, joakim, 2008/06/25
- Re: Short explanation for & in key ! of dired, Paul R, 2008/06/25
- Re: Short explanation for & in key ! of dired, Lynbech Christian, 2008/06/26
- Re: Short explanation for & in key ! of dired, David Kastrup, 2008/06/26
- Re: Short explanation for & in key ! of dired, Phil Jackson, 2008/06/26
- Re: Short explanation for & in key ! of dired, Juri Linkov, 2008/06/27
- Re: Short explanation for & in key ! of dired, Miles Bader, 2008/06/27
- Re: Short explanation for & in key ! of dired, Juri Linkov, 2008/06/28
- Re: Short explanation for & in key ! of dired, Mathias Dahl, 2008/06/25
- Re: Short explanation for & in key ! of dired,
Stefan Monnier <=