Sunday, April 5, 2020

Re: Running external process in a non-blocking way

On Thu, 2 Apr 2020 21:05:16 +0200
Marco <lists@homerow.info> wrote:

> " this works, it opens the calculator and upon closing the calculator
> gvim " continues
> :!xcalc
>
> " this opens the calculator and immediately quits and returns to
> gvim, in the " past it kept the process running
> :!xcalc&
>
> Did something change in vim regarding opening external processes? How
> can I restore the old behaviour? Or more importantly: How can I open
> external processes in a non-blocking way?

Based on a recent mailing list post, a workaround/fix is to use
setsid. This works:

:!setsid xcalc

No clue why this became necessary and what changed, but this seems
to fix it.

Marco

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200405113759.62ce5efa%40homerow.

No comments: