#56 tmux hangs on load-buffer

closed
nobody
tmux 1.8 (2)
2014-02-26
2013-08-18
Peter Kasza
No

Trying to load a buffer from a regular file like:

tmux load-buffer - < /path/to/file

hangs forever, because the epoll method cannot be used on regular files. Trying to add an event listener on fd 0 fails with EPERM. The problem is that some programs (e.g. vim) execute system commands with input, in this way. To fix this issue please disable epoll in osdep-linux.c by uncommenting line 95:

setenv("EVENT_NOEPOLL", "1", 1);

StackOverflow topic: EPOLL on regular files
vim_dev list regarding the same issue

Best regards,
Peter

Related

Tickets: #56

Discussion

  • We probably could do this again now because libevent2 is well established and most people should be using it on Linux.

    -------- Original message --------
    From: Peter Kasza pkasza@users.sf.net
    Date: 18/08/2013 13:08 (GMT+00:00)
    To: Ticket 56 56@tickets.tmux.p.re.sf.net
    Subject: [tmux:tickets] #56 tmux hangs on load-buffer


    [tickets:#56] tmux hangs on load-buffer

    Status: open
    Labels: tmux 1.8
    Created: Sun Aug 18, 2013 12:08 PM UTC by Peter Kasza
    Last Updated: Sun Aug 18, 2013 12:08 PM UTC
    Owner: nobody

    Trying to load a buffer from a regular file like:

    tmux load-buffer - < /path/to/file

    hangs forever, because the epoll method cannot be used on regular files. Trying to add an event listener on fd 0 fails with EPERM. The problem is that some programs (e.g. vim) execute system commands with input, in this way. To fix this issue please disable epoll in osdep-linux.c by uncommenting line 95:

        setenv("EVENT_NOEPOLL", "1", 1);

    StackOverflow topic: EPOLL on regular files
    vim_dev list regarding the same issue

    Best regards,
    Peter


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/tmux/tickets/56/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #56

  • tmux in git now disables epoll on Linux by default.

     
    • status: open --> closed
    • Milestone: -->