[Patch] Add -T (make transient session) option to new-session

2013-04-16 Thread Daniel Ralston
Hi all, If I've done my job well, the commit message should be descriptive enough. Let me know if you'd like me to make any tweaks. Have a good week! Daniel >From 1e5676ea9420359e7de4ee49339a7d089fab7839 Mon Sep 17 00:00:00 2001 From: Daniel Ralston Date: Tue, 16 Apr

Re: [Patch] Add -T (make transient session) option to new-session

2013-04-18 Thread Daniel Ralston
Ha! Yes, that's exactly what you can do. Sorry about that. On Tue, Apr 16, 2013 at 11:58 PM, Nicholas Marriott wrote: > Grouped sessions don't share options so can't you just set > destroy-unattached for the transient sessions? > > > On Tue, Apr 16, 2013 at 09

[PATCH] FIX window resizing when a grouped session's child dies

2013-04-19 Thread Daniel Ralston
Daniel >From d7c541ad37dbe14dc50a2878448f5de0b753286c Mon Sep 17 00:00:00 2001 From: Daniel Ralston Date: Fri, 19 Apr 2013 01:13:07 -0700 Subject: [PATCH] [PATCH] FIX window resizing bug when a grouped session's child dies When the child of a grouped session dies, and the session's client switches to the sam

Bug: renumber-windows and window-killing in grouped sessions

2013-06-22 Thread Daniel Ralston
Hi all, Bug Summary: When renumber-windows is set, killing a bunch of windows created in another grouped session will make the server die unexpectedly. Repro Steps: - In .tmux.conf: *set -g renumber-windows on* - Open two terminals. - In one terminal, run *tmux, *and create a bunch of new window

Re: Bug: renumber-windows and window-killing in grouped sessions

2013-06-30 Thread Daniel Ralston
On Sat, Jun 22, 2013 at 11:21 AM, Thomas Adam wrote: > On Fri, Jun 21, 2013 at 08:10:17PM -0700, Daniel Ralston wrote: > > Hi all, > > > > Bug Summary: > > When renumber-windows is set, killing a bunch of windows created in > another > > grouped session w

Re: Bug: renumber-windows and window-killing in grouped sessions

2013-07-01 Thread Daniel Ralston
On Sat, Jun 29, 2013 at 8:49 AM, Thomas Adam wrote: > On Sat, Jun 29, 2013 at 07:08:17AM -0700, Daniel Ralston wrote: > > On Sat, Jun 22, 2013 at 11:21 AM, Thomas Adam wrote: > > > > > On Fri, Jun 21, 2013 at 08:10:17PM -0700, Daniel Ralston wrote: > > > >

BUG: Crash when killing a session's last window's program from a grouped session

2013-07-27 Thread Daniel Ralston
Hi all, I've found a bug. Repro steps: 1. Run 'tmux' in a terminal. 2. In another terminal, create a grouped session, by running 'tmux new-session -t '. 3. Resize the second terminal so it is bigger than the first one. 4. Kill the program running in the second (larger) terminal; e.g. b

Re: BUG: Crash when killing a session's last window's program from a grouped session

2013-08-04 Thread Daniel Ralston
ry); > - free(sg); > + session_destroy(s); > + } > } > } > > diff --git a/session.c b/session.c > index 74eb06a..24e2e5e 100644 > --- a/session.c > +++ b/session.c > @@ -150,6 +150,7 @@ void > session_destroy

Re: BUG: Crash when killing a session's last window's program from a grouped session

2013-08-04 Thread Daniel Ralston
On Sat, Jul 27, 2013 at 4:49 AM, Thomas Adam wrote: > I appreciate your bug reports, because they're easy for me to reproduce, but > the next time you submit one, I'd appreciate something like a corefile > backtrace. Ah, I had wondered about that. I'll include a core dump with my bug reports from

Re: BUG: Crash when killing a session's last window's program from a grouped session

2013-08-04 Thread Daniel Ralston
On Sat, Jul 27, 2013 at 9:55 AM, Nicholas Marriott wrote: > I don't think it is right to move recalculate_sizes(), we should do > whatever is needed to make it safe to call it there. Do you have a > backtrace? I do indeed, and here it is. I also have the full core dump compressed down to 2.5 Mb.

Re: BUG: Crash when killing a session's last window's program from a grouped session

2013-08-04 Thread Daniel Ralston
On Sat, Jul 27, 2013 at 8:07 AM, Nicholas Marriott wrote: > Does this do it instead? > > diff --git a/server-fn.c b/server-fn.c > index 7ef6413..37ef879 100644 > --- a/server-fn.c > +++ b/server-fn.c > @@ -396,9 +396,9 @@ server_destroy_session_group(struct session *s) > if ((sg = session_