Please CC me. I don't receive messages from the list.

On Monday, May 31, 2021 at 12:36:47 AM UTC-5 cbl...@256bit.org wrote:

> I have seen this behaviour before, but not sure what is causing this. It 
> works using `setsid xdg-open` as mentioned e.g. here: 
> https://vi.stackexchange.com/a/5034/71


I found the issue and sent a patch. The problem is that gvim (not vim) is 
making the child be the controlling tty, when there's no need for that.

There's a workaround to make "!xterm&" work, but that's by ignoring SIGHUP. 
If the child resets SIGHUP the issue returns, and that's what happens with 
exo-open (or anything that uses Glib's g_spawn).

Curiously that code is only enabled when shelltemp is on. Disable shelltemp 
and it works fine.
 

> I have also created a bug report against exo-open, but that one was 
> shutdown without much discussion :(
>

Yes, I saw it, but they are right; the problem is gvim.
 

> Note: emacs seems to have a similar problem, this answer goes a bit more 
> into the details why this may happen: 
> https://askubuntu.com/a/675366/855670


They probably set TIOCSCTTY to make the child control the tty as well.

Cheers.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/3d67af3d-1839-4297-a379-d258304960f4n%40googlegroups.com.

Raspunde prin e-mail lui