Nice idea, will have a better look tonight but I'm not sure I like the idea of makesockpath calling exit().
On Tue, Feb 02, 2010 at 11:32:26PM -0800, Micah Cowan wrote: > So, at some point when I was testing some of the recent keybindings I > introduced into tmux, I ran a separate tmux instance with "-L new" in a > new terminal, so I could test my changes. I typed "tmux list-bindings" > into the shell within this new server's session, and imagine my > confusion when I see a list of keybindings that didn't appear to include > the new ones I'd added. The reason, of course, is that the "tmux" > command always, always talks to the "default" server, regardless of what > $TMUX has to say about it: I have to explicitly type "tmux -L new > list-bindings", even though tmux ought to be able to figure out "-L new" > without my telling it. Stranger still, any attempt to run "tmux neww" > will fail with "can't establish current session", since it will try to > find what session we're running within _default_, by > pid-and-session-index information gleaned from $TMUX. > > Thus, additional servers besides "default" have very much been > second-class citizens. Any value queries done from the shell (via the > "tmux" command) work great when you're in the "default" server, but will > fail or show erroneous information when you're in some other server. > > This patch aims to remedy the situation, by using the path provided in > $TMUX when no other has been specified. > > -- > Micah J. Cowan > http://micah.cowan.name/ > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users