Hi

Hooks will initially only do things before and after commands but we
will add other hooks later - this can be one of them.


On Mon, Mar 18, 2013 at 08:11:09AM -0300, Thiago Padilha wrote:
> >From what I understood by reading the hook-support email, it performs
> actions before/after commands are ran. I was thinking of a more
> generic way to handle session cleanup(eg: server receives SIGTERM).
> 
> I will to do it myself if I knew it would be accepted(hopefully before
> 1.8). However I'm assuming it would only require a few changes in
> 'session.c' and 'cmd-new-session.c'(handling the new option, adding a
> field to store the cleanup command in the session struct and running
> it in 'session_destroy', is that all?)
> 
> On Mon, Mar 18, 2013 at 4:40 AM, Thomas Adam <tho...@xteddy.org> wrote:
> > On 18 March 2013 03:44, Thiago Padilha <tpadilh...@gmail.com> wrote:
> >> After reading the code a little bit, I'm guessing this is not possible
> >> at the moment.
> >>
> >> Nicholas, what are your thoughts about adding another option to the
> >> new-session command, one that would let the user pass a command to be
> >> executed right before the session is destroyed, eg:
> >
> > Wait for hook support.
> >
> > -- Thomas Adam
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to