diff options
author | 2016-10-19 08:17:11 +0000 | |
---|---|---|
committer | 2016-10-19 08:17:11 +0000 | |
commit | f7f49c14ff4c93c286969fa2b32ab28ece13d8d9 (patch) | |
tree | 787aace70da77fe17f64c91cb44a774715414cfd | |
parent | note that SO_REUSEADDR is restricted to callers with the same uid or root; (diff) | |
download | wireguard-openbsd-f7f49c14ff4c93c286969fa2b32ab28ece13d8d9.tar.xz wireguard-openbsd-f7f49c14ff4c93c286969fa2b32ab28ece13d8d9.zip |
Move session-create hook out of session_create so it works with grouped sessions.
-rw-r--r-- | usr.bin/tmux/cmd-new-session.c | 3 | ||||
-rw-r--r-- | usr.bin/tmux/session.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c index 00ec3c1a59c..c3d3e24745b 100644 --- a/usr.bin/tmux/cmd-new-session.c +++ b/usr.bin/tmux/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-session.c,v 1.93 2016/10/16 22:06:40 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.94 2016/10/19 08:17:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -267,6 +267,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) session_group_synchronize_to(s); session_select(s, RB_MIN(winlinks, &s->windows)->idx); } + notify_session("session-created", s); /* * Set the client to the new session. If a command client exists, it is diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c index f84d1689d6d..4b1144039fb 100644 --- a/usr.bin/tmux/session.c +++ b/usr.bin/tmux/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.68 2016/10/16 22:06:40 nicm Exp $ */ +/* $OpenBSD: session.c,v 1.69 2016/10/19 08:17:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -169,7 +169,6 @@ session_create(const char *name, int argc, char **argv, const char *path, } log_debug("session %s created", s->name); - notify_session("session-created", s); return (s); } |