system("tmux load-buffer -", buf) hangs

Showing 1-6 of 6 messages
system("tmux load-buffer -", buf) hangs Péter Kasza 8/14/13 11:03 AM
Dear vim_dev list!
             
I've been using the tslime plugin for some time now, but after an update it somehow doesn't seem to work anymore. The call to system("tmux load-buffer -", buf) hangs forever. I can make it work by changing the line to system("cat | tmux load-buffer -",buf).

This is happening on v7.4.

Re: system("tmux load-buffer -", buf) hangs Christian Brabandt 8/14/13 1:53 PM
Hi P�ter!
Can you verify, this happens when using vim -u NONE -U NONE -N (e.g. no
custom .vimrc and no plugins loaded)?

regards,
Christian
--
Abh�ngigkeit ist das Los der Frauen; Macht ist, wo die B�rte sind.
                -- Jean-Baptiste Moli�re (Die Schule der Frauen)
Re: system("tmux load-buffer -", buf) hangs Péter Kasza 8/16/13 12:47 AM
> custom .vimrc and no plugins loaded)?
Yep, tried a simple echo system("tmux load-buffer -", "asdf") without vimrc/plugins and the same freeze happened.
Re: system("tmux load-buffer -", buf) hangs Christian Brabandt 8/17/13 5:07 AM

On Fr, 16 Aug 2013, P�ter Kasza wrote:

> > custom .vimrc and no plugins loaded)?
> Yep, tried a simple echo system("tmux load-buffer -", "asdf") without vimrc/plugins and the same freeze happened.

I don't see this.

regards,
Christian
--
Gott hat auch die Dummheit geschaffen, aber er hat sie gerecht verteilt.
                -- Konrad Adenauer
Re: system("tmux load-buffer -", buf) hangs Péter Kasza 8/18/13 4:32 AM
> > Yep, tried a simple echo system("tmux load-buffer -", "asdf") without vimrc/plugins and the same freeze happened.

> I don't see this.

Hmm. This seems to be an issue with zsh and or tmux. Executing the command which vim does also hangs.

$ /bin/zsh -c "(tmux load-buffer -) < /tmp/file"
[warn] Epoll ADD(1) on fd 0 failed.  Old events were 0; read change was 1 (add); write change was 0 (none): Operation not permitted
^C^C^C^C^Czsh: killed     /bin/zsh -c "(tmux load-buffer -) < /tmp/file"

Re: system("tmux load-buffer -", buf) hangs Péter Kasza 8/18/13 4:49 AM
I've figured out the problem. tmux tries to use the epoll method on fd 0, but epoll doesnt support regular files.