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

109 views
Skip to first unread message

Péter Kasza

unread,
Aug 14, 2013, 2:03:03 PM8/14/13
to vim...@googlegroups.com
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.

Christian Brabandt

unread,
Aug 14, 2013, 4:53:57 PM8/14/13
to vim...@googlegroups.com
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)

Péter Kasza

unread,
Aug 16, 2013, 3:47:32 AM8/16/13
to vim...@googlegroups.com
> custom .vimrc and no plugins loaded)?
Yep, tried a simple echo system("tmux load-buffer -", "asdf") without vimrc/plugins and the same freeze happened.

Christian Brabandt

unread,
Aug 17, 2013, 8:07:58 AM8/17/13
to vim...@googlegroups.com

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

Péter Kasza

unread,
Aug 18, 2013, 7:32:59 AM8/18/13
to vim...@googlegroups.com
> > 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"

Péter Kasza

unread,
Aug 18, 2013, 7:49:35 AM8/18/13
to vim...@googlegroups.com
I've figured out the problem. tmux tries to use the epoll method on fd 0, but epoll doesnt support regular files.
Reply all
Reply to author
Forward
0 new messages