Re: tmux: create window failed (too many open files)

2012-09-27 Thread Nicholas Marriott
Applied, thanks. On Wed, Sep 26, 2012 at 05:19:56PM +0200, S?bastien Marie wrote: > The patch seems to resolv the problem. > > Only seems, because I only known to reproduce it for the 'tty' descriptor, > but I hope the 'null' descriptor will be in the same case :-) > > But I will use this vers

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Sébastien Marie
ok, I found why I have some 'null' descriptors... it nears the same case that with 'tty' descriptors. I have a custom script (again) for X11 locking, that first destroy kerberos tickets. And I use "tmux show-environment" for get KRB5CCNAME environment variable that I used in the tmux session.

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Sébastien Marie
The patch seems to resolv the problem. Only seems, because I only known to reproduce it for the 'tty' descriptor, but I hope the 'null' descriptor will be in the same case :-) But I will use this version for test it. Thanks a lot. -- Sebastien Marie On Wed, Sep 26, 2012 at 03:42:23PM +0100, N

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Nicholas Marriott
Try this please: Index: server-client.c === RCS file: /cvs/src/usr.bin/tmux/server-client.c,v retrieving revision 1.79 diff -u -p -r1.79 server-client.c --- server-client.c 3 Sep 2012 09:32:38 - 1.79 +++ server-client.c

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Sébastien Marie
Hi, After some tests (on a new tmux server, started with "tmux -L test ..."), I could (partially) reproduce the problem. Partially, because: in fstat output there are 2 kinds of "bugged" entries: tty and null tty: 181 descriptors null: 320 descriptors And I arrived to keep descriptors ope

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Sébastien Marie
On Wed, Sep 26, 2012 at 09:20:25AM +0100, Nicholas Marriott wrote: > Are you running a tmux command from any shell script or cron or > anything? I used X11 (cwm). I open a terminal (rxvt), maximize size, and run: $ tmux attach -d -t semarie (normally, via an alias) > There are only two places

Re: tmux: create window failed (too many open files)

2012-09-26 Thread Nicholas Marriott
Are you running a tmux command from any shell script or cron or anything? There are only two places tmux itself opens /dev/null and they are both after fork so this must be /dev/null passed with imsg from a client. Also please should me output of "tmux info". On Wed, Sep 26, 2012 at 09:29:50AM

tmux: create window failed (too many open files)

2012-09-26 Thread Sébastien Marie
Hi, I'm running -current (not latest, only GENERIC.MP#20), see dmesg below. I run in a error in tmux (a long session: 10 days for now), when a want to create a new window (C-b C-c), I have this error: Create window failed: exec ksh: Too many open files Note, my default shell in tmux.conf is "